diff --git a/web/server/codechecker_server/api/report_server.py b/web/server/codechecker_server/api/report_server.py index 805d96c2c1..2f6b2b2ad9 100644 --- a/web/server/codechecker_server/api/report_server.py +++ b/web/server/codechecker_server/api/report_server.py @@ -1869,6 +1869,9 @@ def getRunResults(self, run_ids, limit, offset, sort_types, q = session.query(Report, File.filename, *annotation_cols.values()) \ + .outerjoin( + File, + Report.file_id == File.id) \ .outerjoin( ReportAnnotations, Report.id == ReportAnnotations.report_id) \ @@ -1876,9 +1879,6 @@ def getRunResults(self, run_ids, limit, offset, sort_types, sorted_reports.c.id == Report.id) \ .filter(sorted_reports.c.id.isnot(None)) - if File not in join_tables: - q = q.outerjoin(File, Report.file_id == File.id) - if report_filter.annotations is not None: annotations = defaultdict(list) for annotation in report_filter.annotations: