Fix used not set cornercase
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Lauri Võsandi 2023-08-17 11:05:57 +03:00
parent 817acc3ecf
commit 1d25a6ddc1

View File

@ -58,7 +58,7 @@ async def fetch():
# Merge application specific passwords last used timestamps # Merge application specific passwords last used timestamps
async for a in app.ctx.db.asps.find({"user": {"$in": list(last_login.keys())}}): async for a in app.ctx.db.asps.find({"user": {"$in": list(last_login.keys())}}):
if a["used"] > last_login[a["user"]]: if a["used"] and a["used"] > last_login[a["user"]]:
last_login[a["user"]] = a["used"] last_login[a["user"]] = a["used"]
for user, dt in last_login.items(): for user, dt in last_login.items():