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.
2 parents 288b546 + 863ee9f commit 57586dcCopy full SHA for 57586dc
app/data/__init__.py
@@ -1,8 +1,8 @@
1
import requests
2
import csv
3
+from datetime import datetime
4
from cachetools import cached, TTLCache
-from app.utils import date as date_util
5
-from app.utils import countrycodes
+from app.utils import countrycodes, date as date_util
6
7
"""
8
Base URL for fetching data.
@@ -65,5 +65,6 @@ def get_data(category):
65
return {
66
'locations': locations,
67
'latest': latest,
68
+ 'last_updated': datetime.utcnow().isoformat() + 'Z',
69
'source': 'https://github.com/ExpDev07/coronavirus-tracker-api',
70
}
0 commit comments