server/checkintegrity.py
changeset 10625 684dbf6722ef
parent 10365 21461f80f348
child 10651 9ca33768473c
child 10839 166c6f7b1be4
--- a/server/checkintegrity.py	Tue Sep 29 14:23:57 2015 +0200
+++ b/server/checkintegrity.py	Tue Sep 29 15:11:29 2015 +0200
@@ -207,7 +207,7 @@
                                 '  WHERE cs.eid_from=e.eid AND cs.eid_to=s.cw_eid) '
                                 'ORDER BY e.eid')
     for row in cursor.fetchall():
-        sys.stderr.write(msg % row)
+        sys.stderr.write(msg % tuple(row))
     if fix:
         cnx.system_sql('INSERT INTO is_relation (eid_from, eid_to) '
                            'SELECT e.eid, s.cw_eid FROM entities as e, cw_CWEType as s '
@@ -221,7 +221,7 @@
                                 '  WHERE cs.eid_from=e.eid AND cs.eid_to=s.cw_eid) '
                                 'ORDER BY e.eid')
     for row in cursor.fetchall():
-        sys.stderr.write(msg % row)
+        sys.stderr.write(msg % tuple(row))
     if fix:
         cnx.system_sql('INSERT INTO is_instance_of_relation (eid_from, eid_to) '
                            'SELECT e.eid, s.cw_eid FROM entities as e, cw_CWEType as s '