Skip to content

Commit 1fdad46

Browse files
committed
Added validation in case of missing ciSystem col
Signed-off-by: Vicente Zepeda Mas <[email protected]>
1 parent fcf0821 commit 1fdad46

File tree

1 file changed

+2
-1
lines changed
  • backend/app/api/v1/commons

1 file changed

+2
-1
lines changed

backend/app/api/v1/commons/ocm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ async def getData(start_datetime: date, end_datetime: date, configpath: str):
2828

2929
if 'buildUrl' not in jobs.columns:
3030
jobs.insert(len(jobs.columns), "buildUrl", "")
31+
if 'ciSystem' not in jobs.columns:
32+
jobs.insert(len(jobs.columns), "ciSystem", "")
3133
jobs.fillna('', inplace=True)
32-
jobs['ciSystem'] = jobs.apply(fillCiSystem, axis=1)
3334
jobs['jobStatus'] = jobs.apply(convertJobStatus, axis=1)
3435
return jobs
3536

0 commit comments

Comments
 (0)