]> git.ipfire.org Git - dbl.git/commitdiff
lists: Only export blocked domains
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 27 Feb 2026 11:32:32 +0000 (11:32 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 27 Feb 2026 11:32:32 +0000 (11:32 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dbl/lists.py

index df7e1398a7748e346f6469c3ec2e79c6518928bc..cbe7308f84123b8de772b20c5c8c6054647e3904 100644 (file)
@@ -286,6 +286,9 @@ class List(sqlmodel.SQLModel, database.BackendMixin, table=True):
                                # Only fetch domains from this list
                                domains.Domain.list == self,
 
+                               # Only get the blocked domains
+                               domains.Domain.block == True,
+
                                # Domains cannot be removed
                                domains.Domain.removed_at == None,