예제 #1
0
 def on_results(self, results):
     # Results is an array of results for each query
     return [
         process_photo_results(
             query_results, scoring_fxn=self.album_photo_score_fxn)
         for query_results in results
     ]
예제 #2
0
 def on_results(self, results):
     getter = process_photo_results(
         results,
         add_to_fields=['album_object_id', 'caption'],
         add_to_defaults={'caption': ''},
         commit=False,
     )
     return getter
예제 #3
0
파일: base.py 프로젝트: bcattle/monkeybook
 def on_results(self, results, photos_i_like):
     getter = process_photo_results(
         results,
     )
     return getter