only return text in generate_challenge

This commit is contained in:
csd4ni3l
2025-08-12 16:42:12 +02:00
parent 20350d0e85
commit d78bf7f26b

View File

@@ -68,7 +68,7 @@ def generate_challenge_route():
if not username in challenges: if not username in challenges:
challenges[username] = {"text": generate_challenge(username), "completed": False} challenges[username] = {"text": generate_challenge(username), "completed": False}
return challenges[username] return challenges[username]["text"]
def resize_image_file(path, max_side=256, fmt="JPEG"): def resize_image_file(path, max_side=256, fmt="JPEG"):
img = Image.open(path) img = Image.open(path)