Anonymous committed 4404e24

Ported r2612 to 0.9-stable.

Comments (0)

Files changed (1)


         # Make sure we don't insert the exact same page twice
         rows = self.db_query("SELECT text FROM wiki WHERE name=%s "
                              "ORDER BY version DESC LIMIT 1",
-                             params=(title, cursor))
+                             cursor, params=(title,))
         old = list(rows)
         if old and data == old[0][0]:
             print '  %s already up to date.' % title