summaryrefslogtreecommitdiff
path: root/fullnarp.py
diff options
context:
space:
mode:
Diffstat (limited to 'fullnarp.py')
-rw-r--r--fullnarp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fullnarp.py b/fullnarp.py
index 24c5dc6..c03de45 100644
--- a/fullnarp.py
+++ b/fullnarp.py
@@ -122,6 +122,7 @@ async def handle_client(websocket):
122 message = { 122 message = {
123 "property": "fullnarp", 123 "property": "fullnarp",
124 "current_version": newest_version, 124 "current_version": newest_version,
125 "version_url": fullnarp_path + "versions/fullnarp_" + str(newest_version) + ".json",
125 "data": current_version, 126 "data": current_version,
126 } 127 }
127 await websocket.send(json.dumps(message)) 128 await websocket.send(json.dumps(message))
@@ -200,7 +201,7 @@ async def main():
200 ) 201 )
201 args = parser.parse_args() 202 args = parser.parse_args()
202 203
203 global engine, SessionLocal 204 global engine, SessionLocal, fullnarp_path
204 205
205 with open(args.config, mode="r", encoding="utf-8") as json_file: 206 with open(args.config, mode="r", encoding="utf-8") as json_file:
206 config = json.load(json_file) 207 config = json.load(json_file)