Skip to content

Commit

Permalink
Optimize missing reports api
Browse files Browse the repository at this point in the history
  • Loading branch information
vodorok committed Oct 31, 2024
1 parent 7195e49 commit 688a598
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/server/codechecker_server/api/report_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -3912,6 +3912,7 @@ def getMissingReportSuperHashes(self, report_super_hashes):
with DBSession(self._Session) as session:
q = session.query(Report) \
.options(sqlalchemy.orm.load_only('super_hash')) \
.filter(Report.super_hash.in_(report_super_hashes))

return list(set(report_super_hashes) - set(list(set(report.super_hash for report in q))))

Expand Down

0 comments on commit 688a598

Please sign in to comment.