Skip to content

Commit

Permalink
webserver fix
Browse files Browse the repository at this point in the history
  • Loading branch information
v00g100skr committed Feb 2, 2025
1 parent ba57209 commit a9c3b5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/web_server/web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,15 @@ async def main(request):
return HTMLResponse(response)


async def get_cache_data(mc, key_b, default_response=None, json=True):
async def get_cache_data(mc, key_b, default_response=None, json_parse=True):
if default_response is None:
default_response = {}

cache = await mc.get(key_b)

if cache:
cache = cache.decode("utf-8")
if json:
if json_parse:
cache = json.loads(cache)

else:
Expand Down

0 comments on commit a9c3b5a

Please sign in to comment.