mirror of https://github.com/zulip/zulip.git
renumber-migrations: Fix last_correct_migration code.
This commit is contained in:
parent
1edd137263
commit
b1dafe5d9d
|
@ -51,7 +51,7 @@ def resolve_conflicts(conflicts, files_list):
|
|||
order = list(map(int, order_input.split()))
|
||||
validate_order(order, len(conflicts))
|
||||
|
||||
last_correct_migration = conflicts[order[0]]
|
||||
last_correct_migration = conflicts[order[0] - 1]
|
||||
|
||||
last_correct_migration = last_correct_migration.replace('.py', '')
|
||||
renumber_migration(conflicts, order, last_correct_migration)
|
||||
|
|
Loading…
Reference in New Issue