get waymarked lag directly from status table

pull/60/head
Hartmut Holzgraefe 2020-06-30 09:10:15 +02:00
rodzic b5f93f47d4
commit e333af4e21
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -83,7 +83,7 @@ def get_waymarked_database_last_update():
if cursor is None:
return None
cursor.execute("""select (last_update) as last_update from waymarked_admin""")
cursor.execute("""select min(date) from status""")
last_update = cursor.fetchone()
if last_update is None or len(last_update) != 1:
return None