diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2025-01-06 02:43:01 +0000 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2025-01-06 02:43:01 +0000 |
commit | a4f3645eb75a74b3dbd2f499d8094be9559adfb2 (patch) | |
tree | 64d43f895694c98bdbef2da9a85621974577e528 /fullnarp.py | |
parent | 780835e52c009f2ecbeca79f656b04577b8fcd64 (diff) |
Cleanup
Diffstat (limited to 'fullnarp.py')
-rw-r--r-- | fullnarp.py | 3 |
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) |