Skip to content

Commit

Permalink
Use underscores instead of dashes for easier reading
Browse files Browse the repository at this point in the history
  • Loading branch information
Graham42 committed Dec 2, 2014
1 parent a5e41f6 commit 304c1d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def write_course(course):
merged_course = course['basic'].copy()
merged_course.update(course['extra'])

filename = '{subject}-{number}.json'.format(**merged_course)
filename = '{subject}_{number}.json'.format(**merged_course)

write_json_file(course, filename, 'courses')

Expand All @@ -54,7 +54,7 @@ def write_section(section):

merged_section = section['basic']

filename = '{year}-{season}-{subject}-{course}-({solus_id}).json'.format(**merged_section)
filename = '{year}_{season}_{subject}_{course}_({solus_id}).json'.format(**merged_section)

write_json_file(section, filename, 'sections')

Expand Down

0 comments on commit 304c1d1

Please sign in to comment.