Spaces:
Runtime error
Runtime error
Fix items orders
Browse files
utils.py
CHANGED
@@ -36,7 +36,8 @@ def remote_css(css_url):
|
|
36 |
|
37 |
|
38 |
def pure_comma_separation(list_str, return_list=True):
|
39 |
-
r =
|
|
|
40 |
if return_list:
|
41 |
return r
|
42 |
return ", ".join(r)
|
|
|
36 |
|
37 |
|
38 |
def pure_comma_separation(list_str, return_list=True):
|
39 |
+
r = [item.strip() for item in list_str.split(",")]
|
40 |
+
# r = list(set([x.strip() for x in list_str.strip().split(',') if len(x.strip()) > 0]))
|
41 |
if return_list:
|
42 |
return r
|
43 |
return ", ".join(r)
|