Skip to content

Commit

Permalink
Fix todo page showing new packages as regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
tstellar committed Apr 21, 2023
1 parent 02d83aa commit 81aa3f6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions copr-reporter/html_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,20 @@ def generate_report(title, results, description):
report.close()

def get_combined_build_state(chroots):
state = 'succeeded'
state = None
for c in chroots:
chroot = chroots[c]
if chroot['state'] == 'failed':
state = 'failed'
break
return state
if chroot['state'] == 'succeeded':
state = 'succeeded'
continue
if chroot['state'] == 'missing':
if not state:
state = 'missing'
continue
return 'failed' if not state else state

if __name__ == '__main__':
title = "Clang Mass Rebuild TODO dashboard"
Expand Down

0 comments on commit 81aa3f6

Please sign in to comment.