use channel and keyword values

This commit is contained in:
Your Name 2018-02-05 14:25:46 +00:00
parent 86f0efcb19
commit 9e41a778f2
1 changed files with 2 additions and 2 deletions

View File

@ -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: