Skip to content

Conversation

@dhsing23
Copy link
Contributor

Changed gapReporter to only use the first two columns of fetch_time_gaps response to remove the trailing comma in the csv reports.

fetch_time_gaps is unchanged and gapReporter will never use the reasons column so this will not change any other functionality.

csvwriter = csv.writer(csvfile)
csvwriter.writerow(['gap_begin', 'gap_end'])
csvwriter.writerows(time_gaps)
csvwriter.writerows([(row[0], row[1]) for row in time_gaps])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dhsing23 can you give me an example of time_gaps?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ (start_ts, end_ts, 'reason'), (start_ts, end_ts, None), (start_ts, end_ts, None) ]

@adamconrad7 adamconrad7 linked an issue Oct 30, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Malformed CSV header for gap report

4 participants