fix: equipment field is category (not type), re-fetched data

This commit is contained in:
Cupcake 2026-06-03 18:23:30 +00:00
parent f6858e6ea1
commit 0327a088f1
4 changed files with 261 additions and 206 deletions

View file

@ -222,7 +222,7 @@ def filter_items(items: list, params: dict) -> list:
if key == "name":
result = [i for i in result if value.lower() in i.get("name", "").lower()]
elif key == "type":
result = [i for i in result if value.lower() in i.get("type", "").lower()]
result = [i for i in result if value.lower() in i.get("type", "").lower() or value.lower() in i.get("category", "").lower()]
elif key == "rarity":
result = [i for i in result if value.lower() in i.get("rarity", "").lower()]
elif key == "search":