def on_task_filter(self, task, config): # Return if we are disabled. if config is False: return # First make sure all the torrent_info_hash fields are in upper case for entry in task.entries: if isinstance(entry.get('torrent_info_hash'), basestring): entry['torrent_info_hash'] = entry['torrent_info_hash'].upper() FilterSeen.on_task_filter(self, task, config, remember_rejected=True)
def on_task_filter(self, task, config): # pylint: disable=W0221 # Return if we are disabled. if config is False: return # First make sure all the torrent_info_hash fields are in upper case for entry in task.entries: if isinstance(entry.get('torrent_info_hash'), basestring): entry['torrent_info_hash'] = entry['torrent_info_hash'].upper() FilterSeen.on_task_filter(self, task, config, remember_rejected=True)