Ejemplo n.º 1
0
 def update_auto_flag(self, nzo_id, flag, flag_detail = None):
     if not flag or not cfg.rating_enable() or not cfg.rating_feedback() or (nzo_id not in self.nzo_indexer_map):
         return
     logging.debug('Updating auto flag (%s: %s)', nzo_id, flag)
     indexer_id = self.nzo_indexer_map[nzo_id]
     rating = self.ratings[indexer_id]
     rating.auto_flag = { 'val': int(flag), 'detail': flag_detail }
     rating.changed = rating.changed | Rating.CHANGED_AUTO_FLAG
     self.queue.put(indexer_id)
Ejemplo n.º 2
0
 def update_auto_flag(self, nzo_id, flag, flag_detail=None):
     if not flag or not cfg.rating_enable() or not cfg.rating_feedback() or (nzo_id not in self.nzo_indexer_map):
         return
     logging.debug('Updating auto flag (%s: %s)', nzo_id, flag)
     indexer_id = self.nzo_indexer_map[nzo_id]
     rating = self.ratings[indexer_id]
     rating.auto_flag = {'val': int(flag), 'detail': flag_detail}
     rating.changed = rating.changed | Rating.CHANGED_AUTO_FLAG
     self.queue.put(indexer_id)