Implement debug flag

This commit is contained in:
2022-05-02 16:32:01 +01:00
parent ea7584703c
commit 8093835857

View File

@@ -6,6 +6,7 @@ from klein import Klein
# Other library imports
from json import dumps
from signal import signal, SIGINT
from sys import argv
# Project imports
from settings import settings
@@ -90,6 +91,8 @@ class WebApp(util.Base):
if __name__ == "__main__":
if "--debug" in argv:
util.debug = True
init_map = {
"ux": ux.UX(),
"markets": Markets(),