hopefully fixed block issues
This commit is contained in:
parent
38ad6559c3
commit
2769673abd
3 changed files with 7 additions and 5 deletions
|
@ -366,8 +366,8 @@ class Core:
|
|||
def setBlockType(self, hash, blockType):
|
||||
conn = sqlite3.connect(self.blockDB)
|
||||
c = conn.cursor()
|
||||
if blockType not in ("txt"):
|
||||
return
|
||||
c.execute("UPDATE hashes set dataType='" + blockType + "' where hash = '" + hash + "';")
|
||||
#if blockType not in ("txt"):
|
||||
# return
|
||||
c.execute("UPDATE hashes SET dataType='" + blockType + "' WHERE hash = '" + hash + "';")
|
||||
conn.commit()
|
||||
conn.close()
|
Loading…
Add table
Add a link
Reference in a new issue