Update LBRYSettings.py
This commit is contained in:
parent
c0312159eb
commit
ea2a3c3b70
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue