Skip to content

Commit

Permalink
Merge pull request #3887 from vodorok/filter_fix
Browse files Browse the repository at this point in the history
[fix][server] Fix webapp crash when using component filter
  • Loading branch information
bruntib authored Apr 19, 2023
2 parents 51d5397 + 8b1135c commit 2e57231
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/server/codechecker_server/api/report_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1869,16 +1869,16 @@ 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) \
.outerjoin(sorted_reports,
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:
Expand Down

0 comments on commit 2e57231

Please sign in to comment.