Skip to content

Commit

Permalink
search operators are case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Dec 30, 2024
1 parent 71cfe74 commit df2b48f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion catalog/sites/igdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def api_query(cls, p, q):
try:
r = json.loads(_wrapper.api_request(p, q)) # type: ignore
except requests.HTTPError as e:
logger.error("IGDB API: {e}", extra={"exception": e})
logger.error(f"IGDB API: {e}", extra={"exception": e})
return []
if settings.DOWNLOADER_SAVEDIR:
with open(
Expand Down
2 changes: 1 addition & 1 deletion journal/models/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ class QueryParser:
@classmethod
def re(cls):
return re.compile(
r"\b(?P<field>" + "|".join(cls.fields) + r"):(?P<value>[^ ]+)"
r"\b(?P<field>" + "|".join(cls.fields) + r"):(?P<value>[^ ]+)", re.I
)

def __init__(self, query: str):
Expand Down
2 changes: 1 addition & 1 deletion journal/templates/search_journal.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{% for item in items %}
{% include '_list_item.html' %}
{% empty %}
<p>{% trans "No items matching the search query." %}</p>
<p class="empty">{% trans "No items matching your search query." %}</p>
{% endfor %}
</div>
</div>
Expand Down

0 comments on commit df2b48f

Please sign in to comment.