Skip to content

Commit 6506978

Browse files
committed
Update conference data
1 parent b85f028 commit 6506978

File tree

2 files changed

+198
-188
lines changed

2 files changed

+198
-188
lines changed

.github/scripts/update_conferences.py

+13-2
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,22 @@ def transform_conference_data(conferences: List[Dict[str, Any]]) -> List[Dict[st
114114
'link': recent_conf.get('link', ''),
115115
'deadline': recent_conf.get('timeline', [{}])[0].get('deadline', ''),
116116
'timezone': recent_conf.get('timezone', ''),
117-
'place': recent_conf.get('place', ''),
118117
'date': recent_conf.get('date', ''),
119118
'tags': [], # We'll need to maintain a mapping for tags
120119
}
121120

121+
# Handle city and country fields instead of place
122+
place = recent_conf.get('place', '')
123+
if place:
124+
# Try to parse the place into city and country if it contains a comma
125+
if ',' in place:
126+
city, country = place.split(',', 1)
127+
transformed_conf['city'] = city.strip()
128+
transformed_conf['country'] = country.strip()
129+
else:
130+
# If we can't parse, just set the country
131+
transformed_conf['country'] = place.strip()
132+
122133
# Add optional fields
123134
timeline = recent_conf.get('timeline', [{}])[0]
124135
if 'abstract_deadline' in timeline:
@@ -193,7 +204,7 @@ def main():
193204
'timezone_submission', 'rebuttal_period_start',
194205
'rebuttal_period_end', 'final_decision_date',
195206
'review_release_date', 'commitment_deadline',
196-
'start', 'end', 'note' # Added note to preserved fields
207+
'start', 'end', 'note', 'city', 'country' # Added city and country to preserved fields
197208
]
198209
for field in preserved_fields:
199210
if field in curr_conf:

0 commit comments

Comments
 (0)