]> git.ipfire.org Git - dbl.git/commitdiff
lists: Initialize the number of total domains when creating a new list
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 Jan 2026 15:12:42 +0000 (15:12 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 Jan 2026 15:12:42 +0000 (15:12 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dnsbl/lists.py

index 01e429fff94d4b66d154fb0c4879f4dcfc2d6c49..18153a7e640538deb158fcc7cf5683bd6c92a401 100644 (file)
@@ -356,7 +356,7 @@ class List(sqlmodel.SQLModel, database.BackendMixin, table=True):
                return self.backend.db.fetch_one(stmt)
 
        # Total Domains
-       total_domains : int
+       total_domains : int = 0
 
        # Delete!