From 173a93454e4ca017aaf63d63b4b7be946a2f777c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 3 Dec 2019 16:29:09 +0100 Subject: [PATCH] fix config.set calls in build_testresults_db.py --- scripts/build_testresult_db.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/build_testresult_db.py b/scripts/build_testresult_db.py index fda9f64c..85b332e0 100755 --- a/scripts/build_testresult_db.py +++ b/scripts/build_testresult_db.py @@ -43,10 +43,11 @@ for idx, extr, url, result in tests: if "options" in result: for key, value in result["options"]: - config.set(key.split("."), value) + key = key.split(".") + config.set(key[:-1], key[-1], value) if "range" in result: - config.set(("image-range",), result["range"]) - config.set(("chapter-range",), result["range"]) + config.set((), "image-range" , result["range"]) + config.set((), "chapter-range", result["range"]) # write test data try: