示例#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
 def on_results(self, results, photos_i_like):
     getter = process_photo_results(
         results,
     )
     return getter