Grapher: Fix Postgres to work again

This commit is contained in:
Worros
2008-12-19 17:27:18 +09:00
parent db6a8c5b31
commit 659f0bb508
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -195,7 +195,7 @@ class GuiGraphViewer (threading.Thread):
hbox.show()
self.createSiteLine(hbox, site)
#Get db site id for filtering later
self.cursor.execute(self.sql.query['getSiteId'], (site))
self.cursor.execute(self.sql.query['getSiteId'], (site,))
result = self.db.cursor.fetchall()
if len(result) == 1:
self.siteid[site] = result[0][0]