If server is not alive update first_checked_at column to now()

This commit is contained in:
spla 2021-09-06 21:41:04 +02:00
pare e6f82478ea
commit 203f19381a

Veure arxiu

@ -296,7 +296,7 @@ def get_alive_servers(server):
if first_checked_at != None: if first_checked_at != None:
cur.execute("UPDATE fediverse SET updated_at=(%s), alive=(%s), first_checked_at=(%s), downs=(%s) where server=(%s)", (now, alive, NULL, downs, server)) cur.execute("UPDATE fediverse SET updated_at=(%s), alive=(%s), first_checked_at=(%s), downs=(%s) where server=(%s)", (now, alive, now, downs, server))
else: else: