ksvmuralidhar commited on
Commit
6b94336
1 Parent(s): f496f2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -171,7 +171,7 @@ def index():
171
  result_str += f'''<div><p class="unavailable">This app is temporarily unavailable</p></div>'''
172
  else:
173
  last_update_utc = datetime.strptime(redis_client.get('NEWSFETCHTIME'), '%Y-%m-%d %H:%M:%S.%f')
174
- last_update_mins = str(int(np.ceil((datetime.now() - last_update_utc).seconds / 60)))
175
  last_update_str = f'Updated {last_update_mins} {"minutes" if last_update_mins > 1 else "minute"} ago'
176
  result_str += f'<p class="srctxt">News aggregated from <b>{src_str}</b>.<br><br>{last_update_str}</p>'
177
 
 
171
  result_str += f'''<div><p class="unavailable">This app is temporarily unavailable</p></div>'''
172
  else:
173
  last_update_utc = datetime.strptime(redis_client.get('NEWSFETCHTIME'), '%Y-%m-%d %H:%M:%S.%f')
174
+ last_update_mins = int(np.ceil((datetime.now() - last_update_utc).seconds / 60))
175
  last_update_str = f'Updated {last_update_mins} {"minutes" if last_update_mins > 1 else "minute"} ago'
176
  result_str += f'<p class="srctxt">News aggregated from <b>{src_str}</b>.<br><br>{last_update_str}</p>'
177