]> git.decadent.org.uk Git - dak.git/blobdiff - dak/update_db.py
Merge commit 'ftpmaster/master' into psycopg2
[dak.git] / dak / update_db.py
index e9f8441d63dc31110509bc0faaea97f7f5988fc5..d4aefe24c93b64b8404835f77e98a9cdf0c5dd85 100755 (executable)
@@ -64,7 +64,7 @@ Updates dak's database schema to the lastest version. You should disable crontab
                                   name TEXT UNIQUE NOT NULL,
                                   value TEXT
                                 );""")
-            c.execute("INSERT INTO config VALUES ( nextval('config_id_seq'), 'db_revision', '0')");
+            c.execute("INSERT INTO config VALUES ( nextval('config_id_seq'), 'db_revision', '0')")
             self.db.commit()
 
         except psycopg2.ProgrammingError:
@@ -85,7 +85,7 @@ Updates dak's database schema to the lastest version. You should disable crontab
 
         try:
             c = self.db.cursor()
-            q = c.execute("SELECT value FROM config WHERE name = 'db_revision';");
+            q = c.execute("SELECT value FROM config WHERE name = 'db_revision';")
             return c.fetchone()[0]
 
         except psycopg2.ProgrammingError: