Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ def update_json(data, name, data_type, desc):
|
|
| 77 |
idx = i
|
| 78 |
break
|
| 79 |
|
| 80 |
-
if
|
| 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}
|