From 102188ea18cc440e11a122a3286237026c4cad23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 19 Aug 2015 12:06:04 +0200 Subject: Fix wrong input format to database add_measure in boot script was called with list of lines instead of single string. --- scripts/boot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/boot.py b/scripts/boot.py index 5c687a2..af39b30 100644 --- a/scripts/boot.py +++ b/scripts/boot.py @@ -24,4 +24,7 @@ def boot(config, to_database = True): if to_database: dtb = database.database() - dtb.add_measure(out, config.id, value) + txt = '' + for ln in out: + txt += ln + '\n' + dtb.add_measure(txt, config.id, value) -- cgit v1.2.3