Update for newer MySQLdb
util/stats/db.py: Update for newer MySQLdb, the result of a blob in a query is an array.array now, so we need to convert that to a string --HG-- extra : convert_revision : 32732983d3d7141755085ec4913fdae057edc67f
This commit is contained in:
parent
202758eea2
commit
ed7926664f
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ class Database(object):
|
|||
|
||||
self.query('select * from formulas')
|
||||
for id,formula in self.cursor.fetchall():
|
||||
self.allFormulas[int(id)] = formula
|
||||
self.allFormulas[int(id)] = formula.tostring()
|
||||
|
||||
StatData.db = self
|
||||
self.query('select * from stats')
|
||||
|
|
Loading…
Reference in a new issue