From 696bd0287f0d6e38610f07993cf2503fb9444123 Mon Sep 17 00:00:00 2001 From: abhijith Date: Mon, 6 Nov 2017 12:05:10 +0530 Subject: [PATCH] Multiple account issue resolved --- gkwebapp/views/account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gkwebapp/views/account.py b/gkwebapp/views/account.py index ecbe5432..800f61c9 100644 --- a/gkwebapp/views/account.py +++ b/gkwebapp/views/account.py @@ -269,8 +269,8 @@ def addmultiaccount(request): gkdata["openingbal"]=acc["openbal"] result = requests.post("http://127.0.0.1:6543/accounts", data =json.dumps(gkdata),headers=header) if result.json()["gkstatus"] == 0: - gkdata = {"activity":acc["accountname"] + " account created"} - resultlog = requests.post("http://127.0.0.1:6543/log", data =json.dumps(gkdata),headers=header) + gkdata2 = {"activity":acc["accountname"] + " account created"} + resultlog = requests.post("http://127.0.0.1:6543/log", data =json.dumps(gkdata2),headers=header) return {"gkstatus":result.json()["gkstatus"]} -- GitLab