aboutsummaryrefslogtreecommitdiff
path: root/scripts/database.py
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-08-19 21:44:16 +0200
committerKarel Kočí <cynerd@email.cz>2015-08-19 22:59:47 +0200
commit9ca8696a489b5c16a2239213919c9e8b7f8c55d5 (patch)
treef8a27acafa140df41fc677b6390e101f7f6abdb9 /scripts/database.py
parent6436b2120ffb4c554577d38480c0bf8f17adb56c (diff)
downloadlinux-conf-perf-9ca8696a489b5c16a2239213919c9e8b7f8c55d5.tar.gz
linux-conf-perf-9ca8696a489b5c16a2239213919c9e8b7f8c55d5.tar.bz2
linux-conf-perf-9ca8696a489b5c16a2239213919c9e8b7f8c55d5.zip
Fix wrong input type to compare_text in register_conf
Diffstat (limited to 'scripts/database.py')
-rw-r--r--scripts/database.py6
1 files changed, 3 insertions, 3 deletions
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):