diff --git a/epictrack-api/src/api/reports/anticipated_schedule_report.py b/epictrack-api/src/api/reports/anticipated_schedule_report.py index fd1721e5..9f154384 100644 --- a/epictrack-api/src/api/reports/anticipated_schedule_report.py +++ b/epictrack-api/src/api/reports/anticipated_schedule_report.py @@ -336,7 +336,7 @@ def _fetch_data(self, report_date): result['next_pecp_short_description'] += block['text'] + '\n' except json.JSONDecodeError: current_app.logger.warning("Failed to decode JSON from next_pecp_short_description") - data_result = namedtuple('data_result', results_dict[0].keys()) + data_result = namedtuple('data_result', results_dict[0].keys()) if len(results_dict) > 0 else () results = [data_result(**result) for result in results_dict] return results