fix manage_projects with MySQL-Python 1.2.5
MySQL-Python version 1.2.5 execute command only works with dictionary or tuple, older
versions worked with strings. This patch makes manage_projects.py compatible with
newer version of MySQL-Python.
Change-Id: I502d2f1da3eef8e4c3a907ad7fe2957a325118d9
Closes-Bug: #1273558
diff --git a/jeepyb/cmd/manage_projects.py b/jeepyb/cmd/manage_projects.py
index deb43aa..2c810d9 100644
--- a/jeepyb/cmd/manage_projects.py
+++ b/jeepyb/cmd/manage_projects.py
@@ -176,7 +176,7 @@
con = jeepyb.gerritdb.connect()
for x in range(10):
cursor = con.cursor()
- cursor.execute(query, group)
+ cursor.execute(query, (group,))
data = cursor.fetchone()
cursor.close()
con.commit()