Load api keys before building database for api accessibility

Allows access to /mlj_1/test without database having to be built
This commit is contained in:
FoxxMD 2021-12-14 09:13:09 -05:00
parent d65def2ddf
commit e582e5abe2
1 changed files with 1 additions and 1 deletions

View File

@ -707,8 +707,8 @@ def start_db():
log("Starting database...")
global lastsync
lastsync = int(datetime.datetime.now(tz=datetime.timezone.utc).timestamp())
build_db()
loadAPIkeys()
build_db()
#run(dbserver, host='::', port=PORT, server='waitress')
log("Database reachable!")