From 9ca8696a489b5c16a2239213919c9e8b7f8c55d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 19 Aug 2015 21:44:16 +0200 Subject: Fix wrong input type to compare_text in register_conf --- scripts/database.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/database.py') diff --git a/scripts/database.py b/scripts/database.py index df89a9a..8664393 100644 --- a/scripts/database.py +++ b/scripts/database.py @@ -88,7 +88,7 @@ class database: gt = self.check_toolsgit() lgt = self.check_linuxgit() tm = datetime.datetime.now() - ps(hash, txtconfig, tm, gt, lgt, generator) + ps(hash, '\n'.join(txtconfig), tm, gt, lgt, generator) def get_configration(self, hash): "Return configration id for inserted hash." @@ -96,7 +96,7 @@ class database: WHERE hash = $1""") rtn = [] for dt in ps(hash): - rtn.append(Config(dt[0], hash, dt[1])) + rtn.append(Config(dt[0], hash, dt[1].split('\n'))) return rtn def add_measure(self, output, conf_id, value = None): @@ -138,7 +138,7 @@ class database: """) rtn = [] for dt in ps(): - rtn.append(Config(dt[0], dt[1], dt[2])) + rtn.append(Config(dt[0], dt[1], dt[2].split('\n'))) return rtn def add_configsort(self, configopt): -- cgit v1.2.3