From fb55d5c7b08c1f908ca138e6cc27095433df09d6 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Wed, 14 Feb 2024 14:05:27 +0000 Subject: [PATCH] fix: remove whitespaces --- game/migrations/0088_rename_episodes.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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