aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-08-18 11:07:58 +0200
committerKarel Kočí <cynerd@email.cz>2015-08-18 11:12:51 +0200
commit63ecebae6561adbb17739b6404893d19a3ea62c5 (patch)
treefed12bd1bb0402959da5667c2db2dd00106dba92 /scripts
parent21faeb3d888ebb9225e00bc178143e57256d4cf9 (diff)
downloadlinux-conf-perf-63ecebae6561adbb17739b6404893d19a3ea62c5.tar.gz
linux-conf-perf-63ecebae6561adbb17739b6404893d19a3ea62c5.tar.bz2
linux-conf-perf-63ecebae6561adbb17739b6404893d19a3ea62c5.zip
Fix database get_configsort
Previous implementation was returning list of tuples. Now it is returning list of strings.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/database.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/database.py b/scripts/database.py
index 82931b0..01c341a 100644
--- a/scripts/database.py
+++ b/scripts/database.py
@@ -150,7 +150,11 @@ class database:
def get_configsort(self):
"Returns sorted list of all configuration options"
- ps = self.db.prepare("""SELECT configopt FROM configopt
+ ps = self.db.prepare("""SELECT id, configopt FROM configopt
ORDER BY id ASC
""")
- return ps()
+ rtn = []
+ itms = ps()
+ for id, config in itms:
+ rtn.append(config)
+ return rtn