From 1d25a6ddc16a3092c103003554556419c4630d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Thu, 17 Aug 2023 11:05:57 +0300 Subject: [PATCH] Fix `used` not set cornercase --- wildduck_exporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wildduck_exporter.py b/wildduck_exporter.py index c8a3a3d..f244d6d 100755 --- a/wildduck_exporter.py +++ b/wildduck_exporter.py @@ -58,7 +58,7 @@ async def fetch(): # Merge application specific passwords last used timestamps 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"] for user, dt in last_login.items():