Fix used
not set cornercase
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
817acc3ecf
commit
1d25a6ddc1
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user