Skip to content

Commit

Permalink
Updated sample API endpoint to match documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
eidens committed Dec 1, 2023
1 parent bc3209b commit a1bb6cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ def filter_by_review_service(paper):
filter_active = reviewed_by and len(reviewed_by) > 0
if not filter_active:
return True
return sorted(reviewed_by) == sorted(paper["reviewed_by"])
return any([service in paper["reviewed_by"] for service in reviewed_by])

def filter_by_query(paper):
filter_active = query and len(query) > 0

0 comments on commit a1bb6cd

Please sign in to comment.