Добавление синхронной версии вызовов API, ещё комментарии и упрощение

This commit is contained in:
2025-11-02 19:42:04 +03:00
parent 3aa4f7206d
commit 849ad4b2d4
4 changed files with 146 additions and 6 deletions
+3 -2
View File
@@ -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)