diff --git a/game/migrations/0088_rename_episodes.py b/game/migrations/0088_rename_episodes.py index 92d7c84a1..9e45611ca 100644 --- a/game/migrations/0088_rename_episodes.py +++ b/game/migrations/0088_rename_episodes.py @@ -4,24 +4,24 @@ def rename_episodes(apps: Apps, *args): Episode = apps.get_model("game", "Episode") - + def update_episode_name(pk: int, name: str): episode = Episode.objects.get(pk=pk) episode.name = name episode.save() - + update_episode_name(pk=12, name="Counted Loops Using While") update_episode_name(pk=13, name="Indeterminate While Loops - coming soon") def undo_rename_episodes(apps: Apps, *args): Episode = apps.get_model("game", "Episode") - + def update_episode_name(pk: int, name: str): episode = Episode.objects.get(pk=pk) episode.name = name episode.save() - + update_episode_name(pk=12, name="Sequencing and Counted Loops") update_episode_name(pk=13, name="Indeterminate WHILE Loops - coming soon") @@ -33,6 +33,3 @@ class Migration(migrations.Migration): reverse_code=undo_rename_episodes, ) ] - - - \ No newline at end of file