Skip to content

Commit 3556055

Browse files
committed
testing
1 parent 09d9a64 commit 3556055

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/python/add_update_member.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,12 @@ def process_role_data(parsed: Dict, prefix: str = "") -> Optional[Dict]:
5555

5656
research_directions = parsed.get(f"{prefix}research-directions")
5757
if research_directions and research_directions != "_No response_":
58-
# Handle both string and list inputs for research directions
59-
if isinstance(research_directions, str):
60-
# Split by commas if it's a comma-separated string
61-
directions = [d.strip() for d in research_directions.split(',')]
62-
else:
63-
directions = research_directions
64-
role["research_directions"] = directions
58+
print(research_directions)
59+
role["research_directions"] = [
60+
direction.strip()
61+
for direction in research_directions.split('-')
62+
if direction.strip()
63+
]
6564

6665
return role
6766

0 commit comments

Comments
 (0)