Spaces:
Runtime error
Runtime error
print dates log
Browse files
app.py
CHANGED
@@ -34,6 +34,8 @@ def get_news():
|
|
34 |
cache = {}
|
35 |
|
36 |
# if new homepage is newer than cache, update cache and return
|
|
|
|
|
37 |
if not cache or parser.parse(nyt_homepage['last_update']) > parser.parse(cache['last_update']):
|
38 |
print("Updating cache with new preditions")
|
39 |
titles = [entry['title'] for entry in nyt_homepage['entries']]
|
|
|
34 |
cache = {}
|
35 |
|
36 |
# if new homepage is newer than cache, update cache and return
|
37 |
+
print("new date",nyt_homepage['last_update'])
|
38 |
+
print("old date",cache['last_update'])
|
39 |
if not cache or parser.parse(nyt_homepage['last_update']) > parser.parse(cache['last_update']):
|
40 |
print("Updating cache with new preditions")
|
41 |
titles = [entry['title'] for entry in nyt_homepage['entries']]
|