From a798e26c975550cad2d0b5067cccc07310bcbadd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cem=20G=C3=B6kmen?= Date: Sat, 2 Sep 2023 03:40:16 -0700 Subject: [PATCH] Add rate limit quota protection --- bddl/data_generation/pull_sheets.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bddl/data_generation/pull_sheets.py b/bddl/data_generation/pull_sheets.py index f20d2632..40adeaf6 100644 --- a/bddl/data_generation/pull_sheets.py +++ b/bddl/data_generation/pull_sheets.py @@ -1,5 +1,6 @@ import os import pathlib +import time import gspread import csv @@ -44,5 +45,8 @@ def main(): writer = csv.writer(f) writer.writerows(worksheet.get_all_values()) + # Stop Google from complaining. + time.sleep(10) + if __name__ == "__main__": main() \ No newline at end of file