aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-14 15:04:02 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-14 15:04:02 +0100
commit46b7c38d59d41255cce9282c9a846fe6fee80801 (patch)
treeab51272b2aed40a5677d2120848369dc97e9bb43
parent1e440d4523ed56af398f08b52d563443ab991d79 (diff)
downloadcheatdb-46b7c38d59d41255cce9282c9a846fe6fee80801.tar.xz
Fix bug in Conf file parser
-rw-r--r--app/tasks/importtasks.py2
1 files changed, 1 insertions, 1 deletions
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