mirror of
https://github.com/krateng/maloja.git
synced 2025-06-10 12:22:21 +03:00
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:
parent
d65def2ddf
commit
e582e5abe2
@ -707,8 +707,8 @@ def start_db():
|
|||||||
log("Starting database...")
|
log("Starting database...")
|
||||||
global lastsync
|
global lastsync
|
||||||
lastsync = int(datetime.datetime.now(tz=datetime.timezone.utc).timestamp())
|
lastsync = int(datetime.datetime.now(tz=datetime.timezone.utc).timestamp())
|
||||||
build_db()
|
|
||||||
loadAPIkeys()
|
loadAPIkeys()
|
||||||
|
build_db()
|
||||||
#run(dbserver, host='::', port=PORT, server='waitress')
|
#run(dbserver, host='::', port=PORT, server='waitress')
|
||||||
log("Database reachable!")
|
log("Database reachable!")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user