Skip to content

Commit

Permalink
fix: remove whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Feb 14, 2024
1 parent 1c361b0 commit fb55d5c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions game/migrations/0088_rename_episodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Check warning on line 18 in game/migrations/0088_rename_episodes.py

View check run for this annotation

Codecov / codecov/patch

game/migrations/0088_rename_episodes.py#L18

Added line #L18 was not covered by tests

def update_episode_name(pk: int, name: str):
episode = Episode.objects.get(pk=pk)
episode.name = name
episode.save()

Check warning on line 23 in game/migrations/0088_rename_episodes.py

View check run for this annotation

Codecov / codecov/patch

game/migrations/0088_rename_episodes.py#L20-L23

Added lines #L20 - L23 were not covered by tests

update_episode_name(pk=12, name="Sequencing and Counted Loops")
update_episode_name(pk=13, name="Indeterminate WHILE Loops - coming soon")

Check warning on line 26 in game/migrations/0088_rename_episodes.py

View check run for this annotation

Codecov / codecov/patch

game/migrations/0088_rename_episodes.py#L25-L26

Added lines #L25 - L26 were not covered by tests

Expand All @@ -33,6 +33,3 @@ class Migration(migrations.Migration):
reverse_code=undo_rename_episodes,
)
]



0 comments on commit fb55d5c

Please sign in to comment.