From 89f1f4006662f47186b32a38a5d85de5935512e5 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Mon, 6 Jan 2025 03:57:34 +0100 Subject: Formatted --- fullnarp.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'fullnarp.py') diff --git a/fullnarp.py b/fullnarp.py index 0500d1b..1085732 100644 --- a/fullnarp.py +++ b/fullnarp.py @@ -49,6 +49,7 @@ SessionLocal = None Base = declarative_base() fullnarp_path = "" + class TalkPreference(Base): __tablename__ = "talk_preference" uid = Column(String, primary_key=True) @@ -75,7 +76,10 @@ async def notify_clients(): message = { "property": "fullnarp", "current_version": newest_version, - "version_url": fullnarp_path + "versions/fullnarp_" + str(newest_version).zfill(5) + ".json", + "version_url": fullnarp_path + + "versions/fullnarp_" + + str(newest_version).zfill(5) + + ".json", "data": current_version, } @@ -127,7 +131,10 @@ async def handle_client(websocket): message = { "property": "fullnarp", "current_version": newest_version, - "version_url": fullnarp_path + "versions/fullnarp_" + str(newest_version).zfill(5) + ".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