Skip to content

Commit

Permalink
WIP: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Filienko committed Apr 25, 2024
1 parent bcc7f5f commit 975719d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_previous_migration_id(self, filename: str) -> str:
for line in migration_file:
match = re.match(r"# Previous version: (.+)", line)
if match:
prev_migration_id = match.group(1) if match != 'None' else None
prev_migration_id = match.group(1) if match.group(1) != 'None' else None
break
return prev_migration_id

Expand Down

0 comments on commit 975719d

Please sign in to comment.