]> git.lizzy.rs Git - cheatdb.git/commitdiff
Fix bug in Conf file parser
authorrubenwardy <rw@rubenwardy.com>
Mon, 14 May 2018 14:04:02 +0000 (15:04 +0100)
committerrubenwardy <rw@rubenwardy.com>
Mon, 14 May 2018 14:04:02 +0000 (15:04 +0100)
app/tasks/importtasks.py

index f39a2245c7bff84c5dab6c1ea529acb4c310c5e8..e0102b8ad6f657b2dd94557f29ce94e978b992ee 100644 (file)
@@ -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