[+] Backend sdk

This commit is contained in:
2024-12-17 00:26:41 -05:00
parent b01a4446ef
commit 058e6675a3
3 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ async def get_puzzle(id: str):
tf = data / f"{id}.json"
if not tf.exists():
return {"error": "Puzzle not found"}
return tf.read_text()
return json.loads(tf.read_text())
# Getting / redirects to main page