Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
schedules
Commits
5d53d711
Commit
5d53d711
authored
Sep 06, 2018
by
Zach Perkins
Browse files
Fixed syntax
parent
410ff7a6
Pipeline
#2855
passed with stage
in 2 minutes and 13 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
schedules_api/db/seeds.rb
View file @
5d53d711
...
...
@@ -53,8 +53,7 @@ total.each do |subject, sections|
section_name
=
"
#{
section
[
:subj
]
}
#{
section
[
:course_number
]
}
#{
section
[
:section
]
}
"
all_sections
.
push
({
name:
section_name
,
all_sections
.
push
(
name:
section_name
,
crn:
section
[
:crn
],
section_type:
section
[
:type
],
title:
section
[
:title
],
...
...
@@ -65,8 +64,7 @@ total.each do |subject, sections|
start_time:
section
[
:start_time
],
end_time:
section
[
:end_time
],
location:
section
[
:location
],
course:
course
})
course:
course
)
# Find or create a course and set its semester
# TODO: this breaks when you try to do more than one semester,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment