Skip to content

Commit

Permalink
fix: almost all processing takes at least one second before completio…
Browse files Browse the repository at this point in the history
…n, so this avoids unnecessary checks
  • Loading branch information
ebridges committed Sep 14, 2020
1 parent 1e6d81e commit 0e4ca54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def confirm(token, key, photo=None):
confirm_url = f'{CONFIRM_ENDPOINT}/{key}'
headers = {'Authorization': f'Bearer {token}'}
chk_cnt = 0
sleep(2)
while True:
chk_cnt = chk_cnt + 1
response = head(confirm_url, headers=headers)
Expand Down

0 comments on commit 0e4ca54

Please sign in to comment.