From db85f92e9b77c691f25f3109e5040e03e7b1319c Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Sat, 7 Nov 2020 13:43:58 -0300 Subject: Add non-federating repos --- ganarchy/templating/templates.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ganarchy/templating/templates.py') diff --git a/ganarchy/templating/templates.py b/ganarchy/templating/templates.py index 1435940..1b069b2 100644 --- a/ganarchy/templating/templates.py +++ b/ganarchy/templating/templates.py @@ -70,7 +70,9 @@ def get_template_loader(): {%- for project in database.list_projects() %} [projects.{{project}}] {%- for repo_url, branch, _head_commit in database.list_repobranches(project) %} +{%- if database.should_repo_federate(project, repo_url, branch) %} "{{repo_url|tomle}}".{% if not branch %}HEAD{% else %}"{{branch|tomle}}"{% endif %} = { active=true } +{%- endif %} {%- endfor %} {% endfor -%} """, -- cgit 1.4.1