Sleep more in parsing notation sheets to avoid reaching the API limit
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
d13385fa01
commit
ceedd0678c
|
@ -41,7 +41,6 @@ class Command(BaseCommand):
|
||||||
if options['verbosity'] >= 1:
|
if options['verbosity'] >= 1:
|
||||||
self.stdout.write(f"Parsing notation sheet for pool {pool.short_name} for {tournament}")
|
self.stdout.write(f"Parsing notation sheet for pool {pool.short_name} for {tournament}")
|
||||||
pool.parse_spreadsheet()
|
pool.parse_spreadsheet()
|
||||||
|
sleep(3) # Three calls = 3s sleep
|
||||||
|
|
||||||
tournament.parse_tweaks_spreadskeets()
|
tournament.parse_tweaks_spreadskeets()
|
||||||
|
|
||||||
sleep(1)
|
|
||||||
|
|
Loading…
Reference in New Issue