Skip to content

Commit ab79693

Browse files
author
ExpDev07
committed
small fix
1 parent 7208fd0 commit ab79693

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)