Skip to content

Commit eccecf4

Browse files
author
ExpDev07
committed
latest
1 parent 8d4dba6 commit eccecf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/data/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_data(type):
3030
for item in data:
3131

3232
# Filter out all the dates.
33-
history = dict(filter(lambda element: date_util.is_date(element[0]), item.items()))A
33+
history = dict(filter(lambda element: date_util.is_date(element[0]), item.items()))
3434

3535
# Normalize the item and append to locations.
3636
locations.append({
@@ -48,7 +48,7 @@ def get_data(type):
4848
'history': history,
4949

5050
# Latest statistic.
51-
'latest': sorted(history.values()),
51+
'latest': int(list(history.values())[-1]),
5252
})
5353

5454
# Return the final data.

0 commit comments

Comments
 (0)