]> git.ipfire.org Git - dnsbl.git/commitdiff
sources: Don't prune domains from other sources
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Dec 2025 17:09:13 +0000 (17:09 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Dec 2025 17:09:13 +0000 (17:09 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dnsbl/sources.py

index 5f177a14b091e5e7151b1fd9e51b194c5a63547b..00db4a12645ecf4b4a90d1dc63c89b5940711344 100644 (file)
@@ -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(),
                        )
                )