return new lbry file status from _change_file_status

This commit is contained in:
Jack Robison 2017-09-07 12:01:31 -04:00
parent 100c18d9b6
commit 070978248e
No known key found for this signature in database
GPG key ID: 284699E7404E3CFF

View file

@ -303,8 +303,10 @@ class EncryptedFileManager(object):
@rerun_if_locked
def _change_file_status(self, rowid, new_status):
return self.sql_db.runQuery("update lbry_file_options set status = ? where rowid = ?",
d = self.sql_db.runQuery("update lbry_file_options set status = ? where rowid = ?",
(new_status, rowid))
d.addCallback(lambda _: new_status)
return d
@rerun_if_locked
def _get_lbry_file_status(self, rowid):