Skip to content

Commit

Permalink
Improve levelless episode check
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Sep 6, 2024
1 parent c2a1e50 commit dbec15c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/views/level.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _next_level_url(level, user, night_mode, from_python_den):
"""

if not level.next_level:
if level.episode and level.episode.pk == 13:
if level.episode and len(level.episode.next_episode.levels()) == 0:
return reverse("python_levels")
return ""

Expand Down

0 comments on commit dbec15c

Please sign in to comment.