Skip to content

Commit

Permalink
try limiting api call delay
Browse files Browse the repository at this point in the history
  • Loading branch information
doctor-phil committed Nov 5, 2024
1 parent 61634db commit f8d00a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lectures/applications/working_with_text.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def get_forecasts(start, end, region):
#print("working on {}, {}".format(region,day))
forecasts = forecasts + [get_forecast(day, region)]
#print("sleeping")
time.sleep(0.1) # to avoid too much load on Avalanche Canada servers
time.sleep(0.05) # to avoid too much load on Avalanche Canada servers
day = day + pd.Timedelta(1,"D")
return(forecasts)
Expand Down

0 comments on commit f8d00a2

Please sign in to comment.