Skip to content

Commit bcf0400

Browse files
committed
fix: 配合 auto-devops 變數命名,修改為 DATABASE_URL
1 parent 6323a65 commit bcf0400

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

config.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,7 @@
6464
BOT_EXTRA_STORAGE_PLUGINS_DIR = BOT_ROOT_DIR + "/storages"
6565

6666
STORAGE = 'SQL'
67-
STORAGE_CONFIG = {
68-
'data_url': 'mysql+pymysql://{}:{}@{}/{}?chartset=utf8mb4'.format(
69-
os.environ(DB_USERNAME),
70-
os.environ(DB_PASSWORD),
71-
os.environ(DB_HOST),
72-
os.environ(DB_NAME)
73-
),
74-
}
67+
STORAGE_CONFIG = { 'data_url': os.environ["DATABASE_URL"] }
7568

7669
# The location where all of Err's data should be stored. Make sure to set
7770
# this to a directory that is writable by the user running the bot.

0 commit comments

Comments
 (0)