diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2025-01-06 02:57:05 +0000 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2025-01-06 02:57:05 +0000 |
commit | 3afe3c68bc1c8d48b852f9b2e28a04050894a804 (patch) | |
tree | 4afa3d562d6384ac0329831c9e908ce0ea8f3bef | |
parent | a4f3645eb75a74b3dbd2f499d8094be9559adfb2 (diff) |
Format version url in the same way as we store them
-rw-r--r-- | fullnarp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fullnarp.py b/fullnarp.py index c03de45..b57c185 100644 --- a/fullnarp.py +++ b/fullnarp.py | |||
@@ -70,7 +70,7 @@ async def notify_clients(): | |||
70 | message = { | 70 | message = { |
71 | "property": "fullnarp", | 71 | "property": "fullnarp", |
72 | "current_version": newest_version, | 72 | "current_version": newest_version, |
73 | "version_url": fullnarp_path + "versions/fullnarp_" + str(newest_version) + ".json", | 73 | "version_url": fullnarp_path + "versions/fullnarp_" + str(newest_version).zfill(5) + ".json", |
74 | "data": current_version, | 74 | "data": current_version, |
75 | } | 75 | } |
76 | 76 | ||
@@ -122,7 +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 | "version_url": fullnarp_path + "versions/fullnarp_" + str(newest_version).zfill(5) + ".json", |
126 | "data": current_version, | 126 | "data": current_version, |
127 | } | 127 | } |
128 | await websocket.send(json.dumps(message)) | 128 | await websocket.send(json.dumps(message)) |