skip unnecessary lambda

This commit is contained in:
Gouvernathor 2023-11-14 22:54:02 +01:00
parent 01126edc4e
commit 49fe8f4902

View File

@ -9,9 +9,9 @@ init python:
elif current_sorting == "Price (Desc)": elif current_sorting == "Price (Desc)":
item = sorted(item, key=lambda x: x.price, reverse=True) item = sorted(item, key=lambda x: x.price, reverse=True)
if sortby == "Lewdness (Asc)": if sortby == "Lewdness (Asc)":
item = sorted(item, key=lambda x: get_outfit_score(x), reverse=False) item = sorted(item, key=get_outfit_score, reverse=False)
elif current_sorting == "Lewdness (Desc)": elif current_sorting == "Lewdness (Desc)":
item = sorted(item, key=lambda x: get_outfit_score(x), reverse=True) item = sorted(item, key=get_outfit_score, reverse=True)
return item return item
label shop_dress: label shop_dress: