remove invalid claim_id from default channel filter list

This commit is contained in:
Lex Berezhny 2019-12-14 18:42:14 -05:00
parent 08792e794f
commit 3cffaa43f7
3 changed files with 3 additions and 3 deletions

View file

@ -168,7 +168,7 @@ def execute_query(sql, values) -> List:
plain_sql = interpolate(sql, values) plain_sql = interpolate(sql, values)
if context.is_tracking_metrics: if context.is_tracking_metrics:
context.metrics['execute_query'][-1]['sql'] = plain_sql context.metrics['execute_query'][-1]['sql'] = plain_sql
if str(err) == "interrupted": if isinstance(err, apsw.InterruptError):
context.log.warning("interrupted slow sqlite query:\n%s", plain_sql) context.log.warning("interrupted slow sqlite query:\n%s", plain_sql)
raise SQLiteInterruptedError(context.metrics) raise SQLiteInterruptedError(context.metrics)
context.log.exception('failed running query', exc_info=err) context.log.exception('failed running query', exc_info=err)

View file

@ -108,7 +108,7 @@ class LBRYElectrumX(ElectrumX):
self.bp: LBRYBlockProcessor = self.session_mgr.bp self.bp: LBRYBlockProcessor = self.session_mgr.bp
self.db: LBRYDB = self.bp.db self.db: LBRYDB = self.bp.db
# space separated list of channel URIs used for filtering bad content # space separated list of channel URIs used for filtering bad content
filtering_channels = self.env.default('FILTERING_CHANNELS_IDS', '1111') filtering_channels = self.env.default('FILTERING_CHANNELS_IDS', '')
self.filtering_channels_ids = list(filter(None, filtering_channels.split(' '))) self.filtering_channels_ids = list(filter(None, filtering_channels.split(' ')))
def set_request_handlers(self, ptuple): def set_request_handlers(self, ptuple):

View file

@ -5,7 +5,7 @@ from lbry.wallet.server.metrics import calculate_avg_percentiles
db_path = '../../../lbryconf/wallet-server/claims.db' db_path = '../../../lbryconf/wallet-server/claims.db'
default_query_timout = 0.25 default_query_timout = 0.25
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
log.addHandler(logging.StreamHandler()) log.addHandler(logging.StreamHandler())