mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-20 10:16:42 -06:00
Fix migration progress output
This commit is contained in:
parent
868e94fb73
commit
e8dd952aa5
@ -64,6 +64,8 @@ def populate_cable_terminations(apps, schema_editor):
|
|||||||
# Output progress occasionally
|
# Output progress occasionally
|
||||||
if 'test' not in sys.argv and not i % 100:
|
if 'test' not in sys.argv and not i % 100:
|
||||||
progress = float(i) * 100 / cable_count
|
progress = float(i) * 100 / cable_count
|
||||||
|
if i == 100:
|
||||||
|
print('')
|
||||||
sys.stdout.write(f"\r Updated {i}/{cable_count} cables ({progress:.2f}%)")
|
sys.stdout.write(f"\r Updated {i}/{cable_count} cables ({progress:.2f}%)")
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user