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
1f63be1c
Commit
1f63be1c
authored
Sep 25, 2018
by
Zac Wood
Browse files
mr rubocop at it again
parent
ed38fd6c
Pipeline
#2988
passed with stage
in 2 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
schedules/db/patriot_web_parser.rb
View file @
1f63be1c
...
...
@@ -57,7 +57,7 @@ module PatriotWeb
# @param document [Nokogiri::HTML::Document]
def
get_subject_codes_from_option_values
(
document
)
document
.
xpath
(
'//*[@id="subj_id"]/option'
).
map
do
|
opt
|
# for each option value under "subj_id"
opt
.
attr
(
'value'
)
if
opt
.
attr
(
'value'
).
strip
.
alpha?
# return the value if the value is alphanumeric
opt
.
attr
(
'value'
)
if
opt
.
attr
(
'value'
).
strip
.
alpha?
# return the value if the value is alphanumeric
end
end
...
...
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