From d253269e14045fe55da63a4899d3019a71552c38 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 6 Dec 2025 17:09:13 +0000 Subject: [PATCH] sources: Don't prune domains from other sources Signed-off-by: Michael Tremer --- src/dnsbl/sources.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dnsbl/sources.py b/src/dnsbl/sources.py index 5f177a1..00db4a1 100644 --- a/src/dnsbl/sources.py +++ b/src/dnsbl/sources.py @@ -169,6 +169,7 @@ class Source(sqlmodel.SQLModel, database.BackendMixin, table=True): "removed_at" : sqlmodel.func.current_timestamp(), }) .where( + SourceDomain.source == self, SourceDomain.updated_at < sqlmodel.func.current_timestamp(), ) ) -- 2.47.3