Add verbosity on mirror update process
* We wanted to know the progess of the updates
This commit is contained in:
parent
7f04f21bc3
commit
5d6f4fc2df
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue