From 3afe3c68bc1c8d48b852f9b2e28a04050894a804 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 6 Jan 2025 02:57:05 +0000 Subject: Format version url in the same way as we store them --- fullnarp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fullnarp.py') 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(): message = { "property": "fullnarp", "current_version": newest_version, - "version_url": fullnarp_path + "versions/fullnarp_" + str(newest_version) + ".json", + "version_url": fullnarp_path + "versions/fullnarp_" + str(newest_version).zfill(5) + ".json", "data": current_version, } @@ -122,7 +122,7 @@ async def handle_client(websocket): message = { "property": "fullnarp", "current_version": newest_version, - "version_url": fullnarp_path + "versions/fullnarp_" + str(newest_version) + ".json", + "version_url": fullnarp_path + "versions/fullnarp_" + str(newest_version).zfill(5) + ".json", "data": current_version, } await websocket.send(json.dumps(message)) -- cgit v1.2.3