Добавление синхронной версии вызовов API, ещё комментарии и упрощение
This commit is contained in:
+3
-2
@@ -49,8 +49,9 @@ class UserToken(SQLModel, table=True):
|
||||
#------------------------------------------------------------
|
||||
config_file = 'config.json'
|
||||
if not path.exists(config_file):
|
||||
db = {'system_api_token': 'None',
|
||||
'system_api_url': 'None'}
|
||||
db = {'system_api_token': 'You_can_skip_this',
|
||||
'system_api_url': 'You_can_skip_this',
|
||||
'user_api_url': 'https://vpc-api.del.pw/'}
|
||||
js = json.dumps(db, indent=2)
|
||||
with open(config_file, "w") as outfile:
|
||||
outfile.write(js)
|
||||
|
||||
Reference in New Issue
Block a user