Skip to content

Commit

Permalink
default failure message for tools logging
Browse files Browse the repository at this point in the history
  • Loading branch information
saavrabh committed Apr 18, 2018
1 parent 1320700 commit 5903644
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gnowsys-ndf/gnowsys_ndf/ndf/views/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down Expand Up @@ -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"}
Expand Down

0 comments on commit 5903644

Please sign in to comment.