From 63ecebae6561adbb17739b6404893d19a3ea62c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 18 Aug 2015 11:07:58 +0200 Subject: Fix database get_configsort Previous implementation was returning list of tuples. Now it is returning list of strings. --- scripts/database.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/database.py') 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 -- cgit v1.2.3