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 041be07 + f33ea9f commit 5221408Copy full SHA for 5221408
mapswipe_workers/mapswipe_workers/firebase_to_postgres/update_data.py
@@ -20,8 +20,13 @@ def update_user_data(user_ids=None):
20
ORDER BY created DESC
21
LIMIT 1
22
'''
23
- last_updated = pg_db.retr_query(pg_query)[0][0]
24
- logger.info(f'got last updated timestamp: {last_updated}')
+ last_updated = pg_db.retr_query(pg_query)
+ try:
25
+ last_updated = last_updated[0][0]
26
+ logger.info(f'got last updated timestamp: {last_updated}')
27
+ except:
28
+ logger.info('could not get last timestamp')
29
+ last_updated = None
30
31
if last_updated is None:
32
# No users in the Postgres database yet.
0 commit comments