Skip to content

Commit

Permalink
avoid excel worksheet name length limit
Browse files Browse the repository at this point in the history
  • Loading branch information
tkishel committed Feb 22, 2021
1 parent 215a07d commit fdeb4ac
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pcs-inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def get_integrations():

compliance_standards_counts_from_alerts = {}

# Collect Policy totals from Alert data, as Alert data includes open and closed Alerts.
# Collect Policy totals from Alert data, as Alert data includes Open and Closed Alerts.

policy_counts_from_alerts = {}

Expand Down Expand Up @@ -547,7 +547,7 @@ def get_integrations():
'default': 0
}

# With , as Alert data includes open and closed Alerts.
# Alert data includes Open and Closed Alerts.

if SUPPORT_API_MODE:
policy_totals_by_alert['high'] = aggregate_alerts_by['severity']['high']
Expand Down Expand Up @@ -676,7 +676,7 @@ def get_integrations():
rows.append((''))
rows.append((''))
rows.append(('Time Range: %s' % TIME_RANGE_LABEL, ''))
write_sheet(panda_writer, 'Open and Closed Alerts by Standard', rows)
write_sheet(panda_writer, 'Open Closed Alerts by Standard', rows)

output('Saving Alerts by Policy Worksheet(s)')
output()
Expand Down Expand Up @@ -711,7 +711,7 @@ def get_integrations():
rows.append((''))
rows.append((''))
rows.append(('Time Range: %s' % TIME_RANGE_LABEL, ''))
write_sheet(panda_writer, 'Open and Closed Alerts by Policy', rows)
write_sheet(panda_writer, 'Open Closed Alerts by Policy', rows)

output('Saving Alerts Summary Worksheet(s)')
output()
Expand Down Expand Up @@ -779,7 +779,7 @@ def get_integrations():
('',''),
('Time Range: %s' % TIME_RANGE_LABEL, ''),
]
write_sheet(panda_writer, 'Open and Closed Alerts Summary', rows)
write_sheet(panda_writer, 'Open Closed Alerts Summary', rows)

save_sheet(panda_writer)
output('Results saved as: %s' % OUTPUT_FILE_XLS)

0 comments on commit fdeb4ac

Please sign in to comment.