Skip to content

Commit

Permalink
Dashboard: Fix issue fetching and empty recent list
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Aug 27, 2019
1 parent 0fe67d9 commit 4bb88ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/dashboard/generate_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ def get_sortkey(s):
for issue in issues:
link_pattern = "dashboard.cp2k.org/archive/{}/".format(s)
matching_labels = [label for label in issue['labels'] if s in label['name']]
if "pull_request" in issue:
continue # GitHub's REST API v3 considers every pull request an issue.
if link_pattern in issue['body'] or any(matching_labels):
issue_tmpl = '<a href="{}">#{}</a>'
matching_issues.append(issue_tmpl.format(issue['html_url'], issue['number']))
Expand Down
2 changes: 2 additions & 0 deletions tools/dashboard/generate_regtest_survey.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def main():
def get_sortkey(s): return config.getint(s, "sortkey")
for tname in sorted(config.sections(), key=get_sortkey):
list_recent = open(outdir+"archive/%s/list_recent.txt"%tname).readlines()
if not list_recent:
continue # list_recent is empty
latest_report_url = list_recent[0].strip()
report = parse_report(latest_report_url)
if report:
Expand Down

0 comments on commit 4bb88ab

Please sign in to comment.