From 5903644ef26d8134b98b4d60512d47e20a96a838 Mon Sep 17 00:00:00 2001 From: Saurabh Bharswadkar Date: Wed, 18 Apr 2018 15:17:17 +0530 Subject: [PATCH] default failure message for tools logging --- gnowsys-ndf/gnowsys_ndf/ndf/views/tools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/views/tools.py b/gnowsys-ndf/gnowsys_ndf/ndf/views/tools.py index 96a48236ef..d7eec4261f 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/views/tools.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/views/tools.py @@ -24,7 +24,7 @@ def tools_logging(request): userdata = request.POST.get('payload',None) user_data_old_strategy = request.POST.get('user_data',None) if userdata!= None: - userdata = json.loads(userdata,object_pairs_hook=OrderedDict) + userdata = json.loads(userdata) # app_name = request.POST.get('app_name',' ') app_name = userdata['appName'] sessionid = "" @@ -87,7 +87,8 @@ def tools_logging(request): old_data.append(userdata) json.dump(old_data, wrfile) return StreamingHttpResponse("Success") - + else: + return StreamingHttpResponse("Failure") @get_execution_time def tools_temp(request): context_variables = {'title' : "tools"}