HelloWorld0204 commited on
Commit
ae4f9d9
·
verified ·
1 Parent(s): 051d438

Upload 22 files

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -2918,7 +2918,11 @@ def _resolve_outfit_grid_sources(
2918
  other_selected: dict[str, Any] | None,
2919
  ) -> tuple[list[dict[str, Any]], list[dict[str, Any]], list[dict[str, Any]], str, dict[str, Any] | None]:
2920
  if occasion == "wedding":
2921
- wardrobe_items = _filter_garments_for_wedding(wardrobe_items)
 
 
 
 
2922
 
2923
  all_tops = [i for i in wardrobe_items if i.get("type") == "topwear"]
2924
  all_bottoms = [i for i in wardrobe_items if i.get("type") == "bottomwear"]
 
2918
  other_selected: dict[str, Any] | None,
2919
  ) -> tuple[list[dict[str, Any]], list[dict[str, Any]], list[dict[str, Any]], str, dict[str, Any] | None]:
2920
  if occasion == "wedding":
2921
+ others_only = [
2922
+ i for i in wardrobe_items
2923
+ if i.get("type") == "others" or i.get("type") not in {"topwear", "bottomwear"}
2924
+ ]
2925
+ wardrobe_items = _filter_garments_for_wedding(others_only)
2926
 
2927
  all_tops = [i for i in wardrobe_items if i.get("type") == "topwear"]
2928
  all_bottoms = [i for i in wardrobe_items if i.get("type") == "bottomwear"]