use state

This commit is contained in:
Your Name 2018-02-05 14:17:54 +00:00
parent c3962ac6eb
commit 86f0efcb19

View file

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