Skip to content

Commit

Permalink
Five clues per week, for real
Browse files Browse the repository at this point in the history
  • Loading branch information
ishefi committed Jun 15, 2024
1 parent 37d7204 commit dc6cd81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions logic/user_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ def clues_used(self) -> int:

async def get_clue(self) -> str | None:
if self.clues_used < len(self.clues):
if not self.user.active and await self._used_max_clues_for_inactive():
raise ValueError() # TODO: custom exception
clue = await self.clues[self.clues_used]()
await self._update_clue_usage()
return clue
Expand Down

0 comments on commit dc6cd81

Please sign in to comment.