Skip to content

Commit 2686329

Browse files
Merge pull request #311 from AmiyaBot/V6-dev
V6 dev
2 parents 4c1abfc + 586a200 commit 2686329

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Project Logo Painted by [kerryst](http://space.bilibili.com/8368479/)
1414
<div>
1515
<img alt="license" src="https://img.shields.io/badge/license-MIT-green">
1616
<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>
1818
<img alt="platform" src="https://img.shields.io/badge/platform-windows%20%7C%20macos%20%7C%20ubuntu-blueviolet">
1919
<img alt="commit" src="https://img.shields.io/github/commit-activity/m/AmiyaBot/Amiya-Bot?color=%23ff69b4">
2020
<img alt="size" src="https://img.shields.io/github/repo-size/AmiyaBot/Amiya-Bot?color=%23ffeb3b">

entrypoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def set_database():
2828
if 'MYSQL_HOST' in os.environ and os.environ['MYSQL_HOST']:
2929
config['config']['host'] = os.environ['MYSQL_HOST']
3030
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'])
3232
if 'MYSQL_USER' in os.environ and os.environ['MYSQL_USER']:
3333
config['config']['user'] = os.environ['MYSQL_USER']
3434
if 'MYSQL_PASSWORD' in os.environ and os.environ['MYSQL_PASSWORD']:
@@ -68,4 +68,4 @@ def main():
6868

6969
if __name__ == '__main__':
7070
main()
71-
71+

0 commit comments

Comments
 (0)