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
|
return clips
|
||||||
|
|
||||||
def get_videos(self, user):
|
def get_videos(self, user):
|
||||||
channels = self.state['channels']
|
channels = {k: v.get('value', 0) for k, v in self.state['channels'].items()}
|
||||||
sliders = self.state['keywords']
|
sliders = {k: v.get('value', 0) for k, v in self.state['keywords'].items()}
|
||||||
# For each playlist, compute keyword score
|
# For each playlist, compute keyword score
|
||||||
score = {}
|
score = {}
|
||||||
for playlist in self.playlists:
|
for playlist in self.playlists:
|
||||||
|
|
Loading…
Reference in a new issue