1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-21 18:22:30 +01:00

fix config.set calls in build_testresults_db.py

This commit is contained in:
Mike Fährmann 2019-12-03 16:29:09 +01:00
parent c0a1241648
commit 173a93454e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -43,10 +43,11 @@ for idx, extr, url, result in tests:
if "options" in result: if "options" in result:
for key, value in result["options"]: 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: if "range" in result:
config.set(("image-range",), result["range"]) config.set((), "image-range" , result["range"])
config.set(("chapter-range",), result["range"]) config.set((), "chapter-range", result["range"])
# write test data # write test data
try: try: