]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Fix database add_configsort
authorKarel Kočí <cynerd@email.cz>
Tue, 18 Aug 2015 08:55:11 +0000 (10:55 +0200)
committerKarel Kočí <cynerd@email.cz>
Tue, 18 Aug 2015 08:55:11 +0000 (10:55 +0200)
No attribute supplied when executed sql command.

scripts/database.py

index c4f0a60af796f7514ca4189ca776165f83c23822..82931b080c62f69a98d0c07c52307aa13a1fa16a 100644 (file)
@@ -146,7 +146,7 @@ class database:
                ps = self.db.prepare("""INSERT INTO configopt
                                                                (configopt) VALUES ($1)
                                                                """)
-               ps()
+               ps(configopt)
 
        def get_configsort(self):
                "Returns sorted list of all configuration options"