From 1aa84ee970335dd91360c6c11a74eb48d4275f84 Mon Sep 17 00:00:00 2001 From: Rostislav Svoboda Date: Thu, 29 Oct 2020 08:52:30 +0100 Subject: [PATCH] Quick fix of https://github.com/CSSEGISandData/COVID-19/issues/3279 --- app/services/location/jhu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/location/jhu.py b/app/services/location/jhu.py index 1a11e8ac..acf85fde 100644 --- a/app/services/location/jhu.py +++ b/app/services/location/jhu.py @@ -87,7 +87,7 @@ async def get_category(category): dates = dict(filter(lambda element: date_util.is_date(element[0]), item.items())) # Make location history from dates. - history = {date: int(amount or 0) for date, amount in dates.items()} + history = {date: int(float(amount or 0)) for date, amount in dates.items()} # Country for this location. country = item["Country/Region"]