Move json load out of set_settings

This commit is contained in:
2025-06-04 19:22:09 +12:00
parent c15f9787a7
commit 55ef5c1580
3 changed files with 7 additions and 5 deletions

View File

@@ -33,8 +33,9 @@ def web(settings, patterns):
while True:
data = await ws.receive()
if data:
# Process the received data
_, status_code = settings.set_settings(data, patterns)
_, status_code = settings.set_settings(json.loads(data), patterns)
#await ws.send(status_code)
else:
break