Skip to content

Commit d7c748a

Browse files
committed
1 parent 70f3b2b commit d7c748a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ecosystem/submission.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,13 @@ def _parse_section(section: str, label_to_id: dict[str, str]):
8989
else:
9090
raw_content = lines[1:]
9191

92-
if "dropdown" == field_type:
93-
if "category" == field_id and "Select" in raw_content:
92+
if "category" == field_id:
93+
if "Select" in raw_content:
9494
content = "other"
9595
else:
9696
content = " ".join(raw_content)
97+
elif "dropdown" == field_type:
98+
content = raw_content
9799
elif "checkboxes" == field_type:
98100
content = raw_content[0].startswith("- [x]")
99101
elif field_id.endswith("_url"):

0 commit comments

Comments
 (0)