修改创建脚本,重新获取最新的

This commit is contained in:
halliday 2024-01-15 11:30:02 +08:00
parent d9090a2318
commit 480cc74e6f
1 changed files with 4 additions and 1 deletions

View File

@ -54,7 +54,10 @@ def execute_sql(sql):
#@repeat(every().monday)
def create_table():
print("start create table...")
sql_string = db_config["create_sql_string"]
#重新获取一下
db_config2 = get_db_info()
sql_string = db_config2["create_sql_string"]
print("create table ...." + sql_string)
try:
execute_sql(sql_string)
except: