From acd16b4a82de5dafa010d710a3e7082e500761d0 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Thu, 5 Feb 2026 22:18:29 +0100 Subject: [PATCH] Fix database query on cleanup --- src/ddns_service/cleanup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ddns_service/cleanup.py b/src/ddns_service/cleanup.py index 3dc3d51..11ba381 100644 --- a/src/ddns_service/cleanup.py +++ b/src/ddns_service/cleanup.py @@ -22,7 +22,7 @@ def cleanup_expired(app, start_time=None): now = now_utc() expired_count = 0 - for hostname in Hostname.select(Hostname, User.email).join(User).where( + for hostname in Hostname.select(Hostname, User).join(User).where( (Hostname.expiry_ttl != 0) & ((Hostname.last_ipv4.is_null(False) & Hostname.last_ipv4_update.is_null(False)) | (Hostname.last_ipv6.is_null(False) & Hostname.last_ipv6_update.is_null(False)))):