aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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