Open utsabc opened 3 years ago
Getting JSON format issue because of NaN values in some of the latitudes and longitudes. You could do a check before setting value into the latitudes and longitudes as you already have templated it as "nan"
"latest":306385,"province":"Quebec"},{"coordinates":{"latitude":NaN,"longitude":NaN},"country":"Canada",
Possible solution: refresh.py
if not math.isnan(row['Lat']):
tmp_country_position['latitude'] = row['Lat']
if not math.isnan(row['Long']):
tmp_country_position['longitude'] = row['Long']
Getting JSON format issue because of NaN values in some of the latitudes and longitudes. You could do a check before setting value into the latitudes and longitudes as you already have templated it as "nan"
"latest":306385,"province":"Quebec"},{"coordinates":{"latitude":NaN,"longitude":NaN},"country":"Canada",