jonathanjordan21 commited on
Commit
26cfb02
·
verified ·
1 Parent(s): 2ec0e1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -77,7 +77,7 @@ def update_json(data, name, data_type, desc):
77
  idx = i
78
  break
79
 
80
- if index != -1:
81
  if desc:
82
  data[idx]["description"] = desc
83
  if data_type:
@@ -87,9 +87,7 @@ def update_json(data, name, data_type, desc):
87
  data.append(
88
  {"name":name, "type":data_type if data_type else "str", "description":desc}
89
  )
90
-
91
- # if index != -1:
92
-
93
  # if name and desc:
94
  # data.append(
95
  # {"name":name, "type":data_type if data_type else "str", "description":desc}
 
77
  idx = i
78
  break
79
 
80
+ if idx != -1:
81
  if desc:
82
  data[idx]["description"] = desc
83
  if data_type:
 
87
  data.append(
88
  {"name":name, "type":data_type if data_type else "str", "description":desc}
89
  )
90
+
 
 
91
  # if name and desc:
92
  # data.append(
93
  # {"name":name, "type":data_type if data_type else "str", "description":desc}