Skip to content

Commit

Permalink
Update forecast.py
Browse files Browse the repository at this point in the history
  • Loading branch information
larsenv authored Jul 28, 2023
1 parent 1a55bbb commit 50021c7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Channels/Forecast_Channel/forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,14 @@ def check_coords(forecast_list, key, lat, lng):


def get_bins(country_code):
bins = [0, 1, 2, 3, 4, 5, 6]
if country_code == 1:
bins = [0]
elif 8 <= country_code <= 52:
bins = [1, 3, 4]
elif 64 <= country_code <= 110:
bins = [1, 2, 3, 4, 5, 6]
elif country_code == 128 or country_code == 144:
bins = [0]

else:
log(
Expand Down

0 comments on commit 50021c7

Please sign in to comment.