summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2022-02-06 01:13:34 -0300
committerSoniEx2 <endermoneymod@gmail.com>2022-02-06 01:13:34 -0300
commitadcef364d90c60b2fcb587257daf40a7e8446ddf (patch)
tree299e98bfde1fe041e9524d16d8ac11bf466d51fa
parentbfa3622c23c4bc574e6e51bdd8c196604ebcd172 (diff)
Fix old cron-target feature
-rw-r--r--ganarchy/cli/run_targets.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/ganarchy/cli/run_targets.py b/ganarchy/cli/run_targets.py
index 6b20066..3f493ed 100644
--- a/ganarchy/cli/run_targets.py
+++ b/ganarchy/cli/run_targets.py
@@ -240,13 +240,19 @@ def cron_target(dry_run, project):
             generate_html.append((repo.url, repo.message, count, repo.branch, repo.pinned))
         else:
             click.echo(repo.errormsg, err=True)
+    pinned_entries = []
+    unpinned_entries = []
     html_entries = []
     for (url, msg, count, branch, pinned) in generate_html:
         history = database.list_repobranch_activity(project, url, branch)
         # TODO process history into SVG
         # TODO move this into a separate system
         # (e.g. ``if project.startswith("svg-"):``)
-        html_entries.append((url, msg, "", branch, pinned))
+        if pinned:
+            pinned_entries.append((url, msg, "", branch))
+        else:
+            unpinned_entries.append((url, msg, "", branch))
+        html_entries.append((url, msg, "", branch))
 
     template = env.get_template('project.html')
     click.echo(