Skip to content

Commit

Permalink
consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed Aug 2, 2023
1 parent 16b0a79 commit 6735841
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions hunt/level_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ def suffix(file: NamedFile) -> str:

# Create new hints.
for number, file in enumerate(images):
filename = str(uuid4()) + suffix(file)
hint = Hint()
hint.level = level
hint.number = number
hint = Hint(level=level, number=number)
filename = f"{uuid4()}{suffix(file)}"
hint.image.save(filename, file)

return f"/level-mgmt?success=True&next={int(lvl_num) + 1}"

0 comments on commit 6735841

Please sign in to comment.