Skip to content

Commit

Permalink
[inlabs_search] update section setting
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorbellini committed Apr 5, 2024
1 parent 19c5176 commit 1193fb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/searchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,9 @@ def _apply_filters(
"""Apply `sections`, `departments` and `date` filters to the
search_terms dictionary."""

if "TODOS" not in sections:
if "TODOS" in sections:
search_terms["pubname"] = ["DO1", "DO2", "DO3"]
else:
search_terms["pubname"] = self._parse_sections(sections)
if department:
search_terms["artcategory"] = department
Expand Down

0 comments on commit 1193fb1

Please sign in to comment.