File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Project Logo Painted by [kerryst](http://space.bilibili.com/8368479/)
14
14
<div >
15
15
<img alt="license" src="https://img.shields.io/badge/license-MIT-green">
16
16
<img alt="version" src="https://img.shields.io/badge/version-6.0-orange">
17
- <img alt="Python" src="https://img.shields.io/badge/Python-3.8 -%233776AB?logo=python&logoColor=white"><br>
17
+ <img alt="Python" src="https://img.shields.io/badge/Python-3.10+ -%233776AB?logo=python&logoColor=white"><br>
18
18
<img alt="platform" src="https://img.shields.io/badge/platform-windows%20%7C%20macos%20%7C%20ubuntu-blueviolet">
19
19
<img alt="commit" src="https://img.shields.io/github/commit-activity/m/AmiyaBot/Amiya-Bot?color=%23ff69b4">
20
20
<img alt="size" src="https://img.shields.io/github/repo-size/AmiyaBot/Amiya-Bot?color=%23ffeb3b">
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ def set_database():
28
28
if 'MYSQL_HOST' in os .environ and os .environ ['MYSQL_HOST' ]:
29
29
config ['config' ]['host' ] = os .environ ['MYSQL_HOST' ]
30
30
if 'MYSQL_PORT' in os .environ and os .environ ['MYSQL_PORT' ]:
31
- config ['config' ]['port' ] = os .environ ['MYSQL_PORT' ]
31
+ config ['config' ]['port' ] = int ( os .environ ['MYSQL_PORT' ])
32
32
if 'MYSQL_USER' in os .environ and os .environ ['MYSQL_USER' ]:
33
33
config ['config' ]['user' ] = os .environ ['MYSQL_USER' ]
34
34
if 'MYSQL_PASSWORD' in os .environ and os .environ ['MYSQL_PASSWORD' ]:
@@ -68,4 +68,4 @@ def main():
68
68
69
69
if __name__ == '__main__' :
70
70
main ()
71
-
71
+
You can’t perform that action at this time.
0 commit comments