Skip to content

Commit

Permalink
Keep credit hours as float
Browse files Browse the repository at this point in the history
  • Loading branch information
will-hou committed Apr 16, 2024
1 parent 82af4ff commit c1e671e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion curricularanalytics/csv_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def course_line(
prefix_num: str = (
f'"{course.prefix}","{course.num}"' if isinstance(course, Course) else ","
)
course_line: str = f'\n{course.id},"{course.name}",{prefix_num},{_course_reqs(course, pre)},{_course_reqs(course, co)},{_course_reqs(course, strict_co)},{int(course.credit_hours)},"{course.institution}","{course.canonical_name}"'
course_line: str = f'\n{course.id},"{course.name}",{prefix_num},{_course_reqs(course, pre)},{_course_reqs(course, co)},{_course_reqs(course, strict_co)},{course.credit_hours},"{course.institution}","{course.canonical_name}"'
if term_id is not None:
course_line += f",{term_id}"
if metrics:
Expand Down

0 comments on commit c1e671e

Please sign in to comment.