Skip to content

Commit

Permalink
Categories cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
goulven authored and goulven committed Oct 8, 2024
1 parent 7298cf1 commit 9ed7f7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -220,8 +221,9 @@ public VerticalConfig getVerticalForCategories(Set<String> categories) {

// Discarding if unmatching category
if (null != vc) {
if (vc.getUnmatchingCategories().contains(category)) {
if (!Collections.disjoint(vc.getUnmatchingCategories(), categories)) {
vc = null;
break;
}
}

Expand Down
3 changes: 3 additions & 0 deletions verticals/src/main/resources/verticals/tv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ matchingCategories:
# The categories that disengage a mapping in this vertical
unmatchingCategories:
- "HIFI>APPAREILS-PHOTO"
- "TV - VIDEO - SON | TV - VIDEO - SON > ACCESSOIRES TV - VIDEO - SON > FIXATION TV - SUPPORT TV - SUPPORT MURAL POUR TV | ACCESSOIRES TV - VIDEO - SON | FIXATION TV - SUPPORT TV - SUPPORT MURAL POUR TV"
- "ACCESSOIRES DE TV"
- "TV, VIDEO, HOME CINEMA | TV, VIDEO, HOME CINEMA>TELEVISEUR>SUPPORT MURAL POUR ECRAN PLAT | TELEVISEUR | TV, VIDEO, HOME CINEMA"

#####################################################################################################################################
# I18N CONFIGURATION
Expand Down

0 comments on commit 9ed7f7f

Please sign in to comment.