]> git.ipfire.org Git - dbl.git/commitdiff
exports: List the total number of entries on the list
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Dec 2025 10:35:36 +0000 (10:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Dec 2025 10:35:36 +0000 (10:35 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dnsbl/exporters.py

index df39a0ce969b3b76d841b83db24f8aa8632ec7b5..3387bb151f88d8e60f38bc34292f63cc06d8f71d 100644 (file)
@@ -83,7 +83,7 @@ class TextExporter(Exporter):
                        " Blocklist Project. It is intended for use with DNS servers and firewalls",
                        " that support blocklisting of known malicious or unwanted domains.",
                        "",
-                       " List    : %s" % self.list.name,
+                       " List          : %s" % self.list.name,
                ]
 
                # Add the description
@@ -95,8 +95,9 @@ class TextExporter(Exporter):
                        ]
 
                lines += [
-                       " License : %s" % self.list.license,
-                       " Updated : %s" % self.list.updated_at.isoformat(),
+                       " License       : %s" % self.list.license,
+                       " Updated       : %s" % self.list.updated_at.isoformat(),
+                       " Total Entries : %s" % len(self.list),
                        "",
                        " Copyright (C) %s - IPFire Team" % now.strftime("%Y"),
                        "",