Commit 87abb5d584e7e94ba840d8cbb05d6c6a020e22a1
1 parent
121775d8
Exists in
master
and in
1 other branch
set back recommender configuration to the default filter.
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
src/recommender.py
... | ... | @@ -109,8 +109,12 @@ class Recommender: |
109 | 109 | Set the recommendation strategy. |
110 | 110 | """ |
111 | 111 | logging.info("Setting recommender strategy to \'%s\'" % strategy_str) |
112 | - self.items_repository = self.axi_programs | |
113 | - self.valid_pkgs = self.valid_programs | |
112 | + if self.cfg.pkgs_filter.split("/")[-1] == "desktopapps": | |
113 | + self.items_repository = self.axi_desktopapps | |
114 | + self.valid_pkgs = self.valid_desktopapps | |
115 | + else: | |
116 | + self.items_repository = self.axi_programs | |
117 | + self.valid_pkgs = self.valid_programs | |
114 | 118 | # Check if collaborative strategies can be instanciated |
115 | 119 | if ("col" in strategy_str) or ("knn" in strategy_str): |
116 | 120 | if not self.cfg.popcon: | ... | ... |