I did a dumb
This commit is contained in:
parent
871c3cc184
commit
8e65fe672f
5
app.py
5
app.py
|
@ -25,7 +25,10 @@ class Database:
|
||||||
f = open('database.json', 'r')
|
f = open('database.json', 'r')
|
||||||
except OSError:
|
except OSError:
|
||||||
print('database does not exist, generating from config')
|
print('database does not exist, generating from config')
|
||||||
else:
|
Database.user_tokens = USER_TOKENS
|
||||||
|
Database.group_ids = VIA_GROUPS
|
||||||
|
return
|
||||||
|
|
||||||
database = json.load(f)
|
database = json.load(f)
|
||||||
|
|
||||||
Database.user_tokens = database.get('user_tokens') or USER_TOKENS
|
Database.user_tokens = database.get('user_tokens') or USER_TOKENS
|
||||||
|
|
Loading…
Reference in New Issue