hopefully fixed block issues

This commit is contained in:
Kevin Froman 2018-02-02 03:15:28 -06:00
parent 38ad6559c3
commit 2769673abd
3 changed files with 7 additions and 5 deletions

View file

@ -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()