fix: equipment field is category (not type), re-fetched data
This commit is contained in:
parent
f6858e6ea1
commit
0327a088f1
4 changed files with 261 additions and 206 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue