mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
fixing bug to allow all measures when no inclusions or exclusions are specified
This commit is contained in:
parent
ef6aad6425
commit
7d907ce8c0
1 changed files with 3 additions and 1 deletions
|
|
@ -79,7 +79,9 @@ class Recommendations:
|
|||
inclusions_full = [MEASURE_MAP[x] if x in MEASURE_MAP else x for x in self.inclusions]
|
||||
exclusions_full = [MEASURE_MAP[x] if x in MEASURE_MAP else x for x in self.exclusions]
|
||||
|
||||
if inclusions_full and exclusions_full:
|
||||
# If inclusions and exclusions are empty, it means that nothing was specified, so we allow
|
||||
# all recommendation types
|
||||
if not inclusions_full and not exclusions_full:
|
||||
# All typical measures
|
||||
return self.all_specific_measures
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue