From: rubenwardy Date: Mon, 14 May 2018 14:04:02 +0000 (+0100) Subject: Fix bug in Conf file parser X-Git-Tag: v1.0.0~70 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=46b7c38d59d41255cce9282c9a846fe6fee80801;p=cheatdb.git Fix bug in Conf file parser --- diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py index f39a224..e0102b8 100644 --- a/app/tasks/importtasks.py +++ b/app/tasks/importtasks.py @@ -114,7 +114,7 @@ def parseConf(string): for line in string.split("\n"): idx = line.find("=") if idx > 0: - key = line[:idx-1].strip() + key = line[:idx].strip() value = line[idx+1:].strip() retval[key] = value