Skip to content

Commit

Permalink
fix: exclude coming soon levels (#1508)
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos authored Oct 31, 2023
1 parent 1d421c0 commit d60a615
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion game/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ def sorted_levels(self):
# Sorts all the levels by integer conversion of "name" which should equate to the correct play order
# Custom levels do not have an episode

return sort_levels(self.model.objects.filter(episode__isnull=False))
return sort_levels(
self.model.objects.filter(episode__isnull=False).exclude(
episode__name__icontains="coming soon"
)
)


def sort_levels(levels):
Expand Down

0 comments on commit d60a615

Please sign in to comment.