radames commited on
Commit
f5fc56d
1 Parent(s): 6e5cb42

print dates log

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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']]