remove unnecessary variable

This commit is contained in:
xmatthias 2018-07-01 20:17:30 +02:00
parent 782570e71e
commit 3c5be55eb9

View File

@ -79,9 +79,7 @@ def check_migrate(engine) -> None:
cols = inspector.get_columns('trades') cols = inspector.get_columns('trades')
tabs = inspector.get_table_names() tabs = inspector.get_table_names()
table_back_name = 'trades_bak' table_back_name = 'trades_bak'
i = 0
for i, table_back_name in enumerate(tabs): for i, table_back_name in enumerate(tabs):
i += 1
table_back_name = f'trades_bak{i}' table_back_name = f'trades_bak{i}'
logger.info(f'trying {table_back_name}') logger.info(f'trying {table_back_name}')