fix merge conflicts
This commit is contained in:
parent
b3d727a9d0
commit
d51748b1d0
1 changed files with 0 additions and 17 deletions
|
@ -58,10 +58,6 @@ class Engine:
|
||||||
self.state['userKeywordsWeights'] = {
|
self.state['userKeywordsWeights'] = {
|
||||||
'themeTags': {'locked': False, 'value': 0.3},
|
'themeTags': {'locked': False, 'value': 0.3},
|
||||||
'characterTags': {'locked': False, 'value': 0.7}
|
'characterTags': {'locked': False, 'value': 0.7}
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
|
|
||||||
>>>>>>> iss2
|
|
||||||
}
|
}
|
||||||
self.update_keywords()
|
self.update_keywords()
|
||||||
|
|
||||||
|
@ -128,11 +124,7 @@ class Engine:
|
||||||
prev_grid_list = sorted([v for v in grid_events.values()], key=lambda k:k['index'])
|
prev_grid_list = sorted([v for v in grid_events.values()], key=lambda k:k['index'])
|
||||||
|
|
||||||
# if there were no grid events for all, initialize all grids.
|
# if there were no grid events for all, initialize all grids.
|
||||||
<<<<<<< HEAD
|
|
||||||
if len(prev_grid_list) < video_num:
|
|
||||||
=======
|
|
||||||
if len(prev_grid_list) < video_num:
|
if len(prev_grid_list) < video_num:
|
||||||
>>>>>>> iss2
|
|
||||||
return {
|
return {
|
||||||
'user': {
|
'user': {
|
||||||
'keywords': user.get('keywords', {})
|
'keywords': user.get('keywords', {})
|
||||||
|
@ -201,10 +193,6 @@ class Engine:
|
||||||
},
|
},
|
||||||
'videos': videos_
|
'videos': videos_
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> iss2
|
|
||||||
|
|
||||||
|
|
||||||
def get_recommendations(self, user, vids_exclude = []):
|
def get_recommendations(self, user, vids_exclude = []):
|
||||||
|
@ -231,11 +219,6 @@ class Engine:
|
||||||
character_tags["FEDOR MIKHAILOVICH SOFRONOV"] = character_tags.get("FYODOR MIKHAILOVICH SOFRONOV",0)
|
character_tags["FEDOR MIKHAILOVICH SOFRONOV"] = character_tags.get("FYODOR MIKHAILOVICH SOFRONOV",0)
|
||||||
character_tags["SHKABARNYA OLGA SERGEEVNA"] = character_tags.get("OLGA SERGEEVNA SHKABARNYA",0)
|
character_tags["SHKABARNYA OLGA SERGEEVNA"] = character_tags.get("OLGA SERGEEVNA SHKABARNYA",0)
|
||||||
character_tags["VICTORIA OLEGOVNA SKITSKAYA"] = character_tags.get("VIKTORIA OLEGOVNA SKITSKAYA",0)
|
character_tags["VICTORIA OLEGOVNA SKITSKAYA"] = character_tags.get("VIKTORIA OLEGOVNA SKITSKAYA",0)
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
=======
|
|
||||||
|
|
||||||
>>>>>>> iss2
|
|
||||||
score = {}
|
score = {}
|
||||||
for playlist in playlists:
|
for playlist in playlists:
|
||||||
score[playlist['name']] = random.random() * 0.001
|
score[playlist['name']] = random.random() * 0.001
|
||||||
|
|
Loading…
Reference in a new issue