Skip to content

Commit

Permalink
fix: fix episode 15 (#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin authored Aug 29, 2024
1 parent 9d781f3 commit 1f0a74a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions game/migrations/0100_reorder_python_levels.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def adjust_python_den_episodes(apps: Apps, *args):
episode12 = Episode.objects.get(pk=12)
episode13 = Episode.objects.get(pk=13)
episode14 = Episode.objects.get(pk=14)
episode15 = Episode.objects.get(pk=15)

episode12.next_episode = episode14
episode14.next_episode = episode13
Expand All @@ -18,10 +19,12 @@ def adjust_python_den_episodes(apps: Apps, *args):
episode12.in_development = False
episode13.in_development = False
episode14.in_development = False
episode15.in_development = False

episode12.save()
episode13.save()
episode14.save()
episode15.save()

Level.objects.filter(default=True, name__in=range(1014, 1026)).update(
episode=episode14
Expand All @@ -38,6 +41,7 @@ def undo_adjust_python_den_episodes(apps: Apps, *args):
episode12 = Episode.objects.get(pk=12)
episode13 = Episode.objects.get(pk=13)
episode14 = Episode.objects.get(pk=14)
episode15 = Episode.objects.get(pk=15)

episode12.next_episode = episode13
episode13.next_episode = episode14
Expand All @@ -46,10 +50,12 @@ def undo_adjust_python_den_episodes(apps: Apps, *args):
episode12.in_development = True
episode13.in_development = True
episode14.in_development = True
episode15.in_development = True

episode12.save()
episode13.save()
episode14.save()
episode15.save()

Level.objects.filter(default=True, name__in=range(1014, 1026)).update(
episode=episode13
Expand Down

0 comments on commit 1f0a74a

Please sign in to comment.