int is not iterable, fix bug
This commit is contained in:
@@ -13,7 +13,7 @@ sys.path.append(".")
|
|||||||
|
|
||||||
#### config
|
#### config
|
||||||
# countries of interest
|
# countries of interest
|
||||||
countries = ["Germany", "Italy", "China", "Japan", "South Korea", "Iran", "United States", "World", "United Kingdom", "Sweden"]
|
countries = ["Germany", "Italy", "India", "Japan", "Brazil", "Iran", "United States", "World", "United Kingdom", "Sweden"]
|
||||||
# enabled plots
|
# enabled plots
|
||||||
plots = ["basics", "death_per_case",
|
plots = ["basics", "death_per_case",
|
||||||
#"normalized_to_first_death", "delay_from_china", "delay_from_usa", "normalized_to_ten_cases", "percent_increase",
|
#"normalized_to_first_death", "delay_from_china", "delay_from_usa", "normalized_to_ten_cases", "percent_increase",
|
||||||
@@ -39,7 +39,7 @@ def get_data():
|
|||||||
|
|
||||||
if not os.path.isfile(datafile):
|
if not os.path.isfile(datafile):
|
||||||
|
|
||||||
for n in tries:
|
for n in range(tries):
|
||||||
try:
|
try:
|
||||||
r = requests.get(dataurl)
|
r = requests.get(dataurl)
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user