Skip to content

Commit ed31c6f

Browse files
committed
fix: convert primary_crn to int
1 parent 0c3aeed commit ed31c6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ferry/database/sync_db_courses.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ def sync_db_courses(
246246
# Pandas would read JSON columns as real values, so we serialize them again
247247
tables_old["courses"]["skills"] = tables_old["courses"]["skills"].apply(ujson.dumps)
248248
tables_old["courses"]["areas"] = tables_old["courses"]["areas"].apply(ujson.dumps)
249+
tables_old["courses"]["primary_crn"] = tables_old["courses"]["primary_crn"].astype(
250+
pd.Int64Dtype()
251+
)
249252
tables_old["course_meetings"]["location_id"] = tables_old["course_meetings"][
250253
"location_id"
251254
].astype(pd.Int64Dtype())

0 commit comments

Comments
 (0)