Add verbosity on mirror update process

* We wanted to know the progess of the updates
This commit is contained in:
Bofh 2021-02-11 00:28:08 +01:00
parent 7f04f21bc3
commit 5d6f4fc2df
1 changed files with 3 additions and 1 deletions

View File

@ -85,10 +85,12 @@ def update_allaccounts():
sleeptime = int(config()['timeout_btw_accounts'])
accounts = os.listdir('./db/accounts')
random.shuffle(accounts)
i = 0
for acc_id in accounts:
i += 1
print('I| mirroring account "{}"...'.format(acc_id))
update_igaccount(acc_id)
print('I| timeout {} seconds'.format(sleeptime))
print('I| {} of {} completed. Waiting {} seconds'.format(i, len(accounts), sleeptime))
time.sleep(sleeptime)
print()
print('I| done updating all accounts')