Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/gapReporter/gapReporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def lambda_handler(event, context):
with open(output_csv, 'w', newline='') as csvfile:
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) ]


# Upload to S3
s3 = boto3.client('s3')
Expand Down