]> git.ipfire.org Git - dbl.git/commitdiff
exporters: Optimize the list before exporting it
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 27 Feb 2026 13:42:20 +0000 (13:42 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 27 Feb 2026 13:42:20 +0000 (13:42 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dbl/exporters.py

index a02af4ccdc2a293d8fa3ccbd04847056642100c1..f4e130e4886536488292683200ac60bef779f1b1 100644 (file)
@@ -46,6 +46,9 @@ class Exporter(abc.ABC):
                """
                        The main entry point to export something with this exporter...
                """
+               # Ensure the list is optimized
+               await self.list.optimize()
+
                # Export!
                with util.Stopwatch(_("Exporting %(name)s using %(exporter)s") % \
                                { "name" : self.list.name, "exporter" : self.__class__.__name__ }):