Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
justinh-rahb authored Oct 25, 2023
1 parent 18a7b2f commit b9bdb21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def refresh_and_fetch_csv(query_id):
if response.status_code == 200:
print(f"Query {query_id} refreshed successfully.")

# Introduce a 5-second delay before fetching the CSV
time.sleep(5)
# Introduce a 15-second delay before fetching the CSV
time.sleep(15)

# Construct the CSV URL and fetch the CSV data
csv_url = f"{settings.redash_url}/api/queries/{query_id}/results.csv?api_key={settings.api_key}"
Expand Down

0 comments on commit b9bdb21

Please sign in to comment.