Skip to content

Commit 1867428

Browse files
authored
Merge pull request #118 from ExpDev07/patch-1
small fix
2 parents 7208fd0 + ab79693 commit 1867428

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/location/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ def __init__(self, id, country, province, coordinates, timelines):
6161
id, country, province, coordinates,
6262

6363
# Statistics (retrieve latest from timelines).
64-
confirmed=timelines.get('confirmed').latest,
65-
deaths=timelines.get('deaths').latest,
66-
recovered=timelines.get('recovered').latest,
64+
confirmed=timelines.get('confirmed').latest or 0,
65+
deaths=timelines.get('deaths').latest or 0,
66+
recovered=timelines.get('recovered').latest or 0,
6767
)
6868

6969
# Set timelines.

0 commit comments

Comments
 (0)