Skip to content

Commit

Permalink
Added validation in case of missing ciSystem col
Browse files Browse the repository at this point in the history
Signed-off-by: Vicente Zepeda Mas <[email protected]>
  • Loading branch information
chentex committed Jul 5, 2024
1 parent fcf0821 commit 1fdad46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/app/api/v1/commons/ocm.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ async def getData(start_datetime: date, end_datetime: date, configpath: str):

if 'buildUrl' not in jobs.columns:
jobs.insert(len(jobs.columns), "buildUrl", "")
if 'ciSystem' not in jobs.columns:
jobs.insert(len(jobs.columns), "ciSystem", "")
jobs.fillna('', inplace=True)
jobs['ciSystem'] = jobs.apply(fillCiSystem, axis=1)
jobs['jobStatus'] = jobs.apply(convertJobStatus, axis=1)
return jobs

Expand Down

0 comments on commit 1fdad46

Please sign in to comment.