Skip to content

Commit

Permalink
Merge pull request #113 from cms-sw/iarspider-patch-1
Browse files Browse the repository at this point in the history
process_prs_stats: ignore new `tests` states
  • Loading branch information
smuzaffar authored Nov 7, 2023
2 parents 48b33c9 + f07add3 commit 016ba87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process_prs_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def dumpCategoriesJS():

def labelsToState(labels):
allParts = [x.split("-", 1) for x in labels if "-" in x]
validParts = [x for x in allParts if x[0] in POSITIONS.keys()]
validParts = [x for x in allParts if x[0] in POSITIONS.keys() and x[1] in STATES.keys()]
states = [(STATES[x[1]], POSITIONS[x[0]]) for x in validParts]
iniValue = ["N" for i in xrange(len(POSITIONS))]
for x in states: iniValue[x[1]] = x[0]
Expand Down

0 comments on commit 016ba87

Please sign in to comment.