@@ -114,11 +114,22 @@ def transform_conference_data(conferences: List[Dict[str, Any]]) -> List[Dict[st
114
114
'link' : recent_conf .get ('link' , '' ),
115
115
'deadline' : recent_conf .get ('timeline' , [{}])[0 ].get ('deadline' , '' ),
116
116
'timezone' : recent_conf .get ('timezone' , '' ),
117
- 'place' : recent_conf .get ('place' , '' ),
118
117
'date' : recent_conf .get ('date' , '' ),
119
118
'tags' : [], # We'll need to maintain a mapping for tags
120
119
}
121
120
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
+
122
133
# Add optional fields
123
134
timeline = recent_conf .get ('timeline' , [{}])[0 ]
124
135
if 'abstract_deadline' in timeline :
@@ -193,7 +204,7 @@ def main():
193
204
'timezone_submission' , 'rebuttal_period_start' ,
194
205
'rebuttal_period_end' , 'final_decision_date' ,
195
206
'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
197
208
]
198
209
for field in preserved_fields :
199
210
if field in curr_conf :
0 commit comments