Update LBRYSettings.py

This commit is contained in:
jackrobison 2015-10-26 11:00:07 -04:00
parent c0312159eb
commit ea2a3c3b70

View file

@ -82,7 +82,7 @@ class LBRYSettings(object):
def get_rate():
if rate_type in self.db:
return json.loads(self.db['rate_type'])
return json.loads(self.db[rate_type])
else:
return None
@ -117,4 +117,4 @@ class LBRYSettings(object):
def _set_query_handler_status(self, query_identifier, status):
def set_status():
self.db[json.dumps(('q_h', query_identifier))] = json.dumps(status)
return threads.deferToThread(set_status)
return threads.deferToThread(set_status)