From: Michael Tremer Date: Sat, 6 Dec 2025 17:09:13 +0000 (+0000) Subject: sources: Don't prune domains from other sources X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d253269e14045fe55da63a4899d3019a71552c38;p=dnsbl.git sources: Don't prune domains from other sources Signed-off-by: Michael Tremer --- 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(), ) )