now update block datasaved stat when saved
This commit is contained in:
parent
7acb695acd
commit
dc65254e0a
2 changed files with 11 additions and 1 deletions
|
@ -169,6 +169,13 @@ class Core:
|
|||
blockFile = open(blockFileName, 'w')
|
||||
blockFile.write(data.decode())
|
||||
blockFile.close()
|
||||
|
||||
conn = sqlite3.connect(self.blockDB)
|
||||
c = conn.cursor()
|
||||
c.execute("UPDATE hashes set dataSaved=1 where id = '" + dataHash + "';")
|
||||
conn.commit()
|
||||
conn.close()
|
||||
|
||||
return dataHash
|
||||
|
||||
def dataDirEncrypt(self, password):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue