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:
Emmy D'Anello 2024-04-06 10:49:19 +02:00
parent d13385fa01
commit ceedd0678c
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 1 additions and 2 deletions

View File

@ -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)