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
def get_videos(self, user):
channels = {'keywords': 7, 'screenings': 7, 'random': 2}
sliders = {'dau': -1, 'physics': 0, 'sex': 1}
channels = self.state['channels']
sliders = self.state['keywords']
# For each playlist, compute keyword score
score = {}
for playlist in self.playlists: