Skip to content

Commit

Permalink
cms-2013-hlt-triggers: fix CMSSW links to GitHub
Browse files Browse the repository at this point in the history
Fixes links for CMSSW releases to GitHub.

Closes cernopendata/opendata.cern.ch#3436.
  • Loading branch information
tiborsimko committed Sep 17, 2023
1 parent ba60ca4 commit 9ca0cca
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import json

TEMPLATE_TOC = """\
<tr><td>{runs}</td><td><a href="https://github.com/cms-sw/cmssw/tree/{cmssw}">{cmssw}</a></td><td><a href="files/{filename}">{title}</a></td></tr>"""
<tr><td>{runs}</td><td><a href="https://github.com/cms-sw/cmssw-cvs/releases/tag/{cmssw}">{cmssw}</a></td><td><a href="files/{filename}">{title}</a></td></tr>"""

def main():
"""Do the main job."""
Expand All @@ -22,7 +22,8 @@ def main():
# for every configuration line:
for line in filtered_lines:
cmssw, title, runs = line.split(None, 2)

if cmssw.endswith("_ONLINE"):
cmssw = cmssw[:-7]
runs = runs.strip()
runs = runs.replace('(run ', '')
runs = runs.replace('(runs ', '')
Expand Down

0 comments on commit 9ca0cca

Please sign in to comment.