use channel and keyword values
This commit is contained in:
parent
86f0efcb19
commit
9e41a778f2
1 changed files with 2 additions and 2 deletions
|
@ -78,8 +78,8 @@ class Engine:
|
|||
return clips
|
||||
|
||||
def get_videos(self, user):
|
||||
channels = self.state['channels']
|
||||
sliders = self.state['keywords']
|
||||
channels = {k: v.get('value', 0) for k, v in self.state['channels'].items()}
|
||||
sliders = {k: v.get('value', 0) for k, v in self.state['keywords'].items()}
|
||||
# For each playlist, compute keyword score
|
||||
score = {}
|
||||
for playlist in self.playlists:
|
||||
|
|
Loading…
Reference in a new issue