keep claim id history

This commit is contained in:
Jack 2016-08-04 23:27:10 -04:00
parent ca09592a72
commit b29377dc2b

View file

@ -599,7 +599,7 @@ class LBRYWallet(object):
return d
def _update_claimid(self, claim_id, name, txid):
d = self.db.runQuery("delete from claim_ids where claimId=? and name=?", (claim_id, name))
d = self.db.runQuery("delete from claim_ids where claimId=? and name=? and txid=?", (claim_id, name, txid))
d.addCallback(lambda r: self.db.runQuery("insert into claim_ids values (?, ?, ?)", (claim_id, name, txid)))
d.addCallback(lambda _: claim_id)
return d