Skip to content
Snippets Groups Projects

Fixed logical reference error when protienSource and -Type was used in the same query

Merged Pontus Atuma Löfgren requested to merge fix/filter/ads into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -102,7 +102,7 @@ def adverts():
forbidden_proteins = [ObjectId(obj['_id']) for obj in cursor]
if 'protein' in query_parameters:
query_parameters['$nin'].append(forbidden_proteins)
query_parameters['protein']['$nin'].append(forbidden_proteins)
else:
query_parameters["protein"] = {"$nin" : forbidden_proteins}
Loading