Skip to content

Commit

Permalink
fix archive.get call with req=None (#2352)
Browse files Browse the repository at this point in the history
SDESK-6511
  • Loading branch information
petrjasek committed Jun 14, 2022
1 parent aa9d445 commit f6b68fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/archive/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,8 @@ def _get_highlight_query(self, req):
return req

def get(self, req, lookup):
req = self._get_highlight_query(req)
if req is not None:
req = self._get_highlight_query(req)

if req is None and lookup is not None and "$or" in lookup:
# embedded resource generates mongo query which doesn't work with elastic
Expand Down

0 comments on commit f6b68fa

Please sign in to comment.