diff --git a/src/ddns_service/cleanup.py b/src/ddns_service/cleanup.py index 11ba381..0b48a16 100644 --- a/src/ddns_service/cleanup.py +++ b/src/ddns_service/cleanup.py @@ -129,8 +129,8 @@ def cleanup_expired(app, start_time=None): app.email_service.send_expiry_notification( hostname.user.email, hostname, - hostname.last_ipv4 == old_ipv4, - hostname.last_ipv6 == old_ipv6 + ipv4_expired, + ipv6_expired ) expired_count += 1