use state
This commit is contained in:
parent
c3962ac6eb
commit
86f0efcb19
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 = {'keywords': 7, 'screenings': 7, 'random': 2}
|
channels = self.state['channels']
|
||||||
sliders = {'dau': -1, 'physics': 0, 'sex': 1}
|
sliders = self.state['keywords']
|
||||||
# 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