Spaces:
Sleeping
Sleeping
Commit
·
b083fdc
1
Parent(s):
71ca3a7
fix issue when adding attributes with non-restricted values
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ def add_attribute_schema(attributes, attr_name, attr_desc, attr_type, allowed_va
|
|
112 |
"description": "{attr_desc}",
|
113 |
"data_type": "{attr_type}",
|
114 |
"allowed_values": [
|
115 |
-
{', '.join([f'"{v.strip()}"' for v in allowed_values.split(',')])}
|
116 |
]
|
117 |
}},
|
118 |
"""
|
|
|
112 |
"description": "{attr_desc}",
|
113 |
"data_type": "{attr_type}",
|
114 |
"allowed_values": [
|
115 |
+
{', '.join([f'"{v.strip()}"' for v in allowed_values.split(',')]) if allowed_values != "" else ""}
|
116 |
]
|
117 |
}},
|
118 |
"""
|