We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d4dba6 commit eccecf4Copy full SHA for eccecf4
app/data/__init__.py
@@ -30,7 +30,7 @@ def get_data(type):
30
for item in data:
31
32
# Filter out all the dates.
33
- history = dict(filter(lambda element: date_util.is_date(element[0]), item.items()))A
+ history = dict(filter(lambda element: date_util.is_date(element[0]), item.items()))
34
35
# Normalize the item and append to locations.
36
locations.append({
@@ -48,7 +48,7 @@ def get_data(type):
48
'history': history,
49
50
# Latest statistic.
51
- 'latest': sorted(history.values()),
+ 'latest': int(list(history.values())[-1]),
52
})
53
54
# Return the final data.
0 commit comments