]> git.ipfire.org Git - pbs.git/commitdiff
repos: Fix rendering configuration file
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Oct 2022 18:10:33 +0000 (18:10 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Oct 2022 18:10:33 +0000 (18:10 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/repos.py

index 8eeb62a5975951c1eead9e73bb664b61ed3912e2..8af6a6366baef9f826e83418fb9ef47f14531c8d 100644 (file)
@@ -111,7 +111,8 @@ class ConfigHandler(BaseHandler):
                self.set_header("Content-Type", "text/plain")
 
                # Generate configuration
-               config = repo.get_config()
+               with self.db.transaction():
+                       config = repo._make_config()
 
                # Send it to the client
                self.finish(config)