From 8d7b985e97d8e0bacf7b8cbda1d2ac6f6a6e406c Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Wed, 29 May 2019 12:00:13 +0530 Subject: [PATCH] Renaming exitconditions to User Choice --- ranchimallflo_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ranchimallflo_api.py b/ranchimallflo_api.py index ec8ce24..fd38126 100644 --- a/ranchimallflo_api.py +++ b/ranchimallflo_api.py @@ -239,15 +239,15 @@ def getcontractinfo(): 'SELECT attribute,value FROM contractstructure') result = c.fetchall() - returnval = {'exitconditions': []} + returnval = {'userChoice': []} temp = 0 for row in result: if row[0] == 'exitconditions': if temp == 0: - returnval["exitconditions"] = [row[1]] + returnval["userChoice"] = [row[1]] temp = temp + 1 else: - returnval['exitconditions'].append(row[1]) + returnval['userChoice'].append(row[1]) continue returnval[row[0]] = row[1]