Commit 0acc5ae5 authored by Max Rees's avatar Max Rees

branches: fix prune of missing databases

parent 1de3eeb6
......@@ -100,8 +100,9 @@ def page_branches(path, _query):
for i, branch in enumerate(branches):
if not (SRCDIR / f"{branch}.sqlite").is_file():
del branches[i]
branches[i] = None
branches = [i for i in branches if i]
ok()
response = ENV.get_template("branches.tmpl").render(
conf=conf["DEFAULT"],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment