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
mason-today-web
Commits
4d2e96ef
Commit
4d2e96ef
authored
Feb 14, 2018
by
Aaron R Poulter-martinez
Browse files
edited location so it doesn't return a leading comma
parent
1ea66002
Changes
1
Hide whitespace changes
Inline
Side-by-side
mason-today/parscript.py
View file @
4d2e96ef
...
@@ -182,12 +182,14 @@ def load_data():
...
@@ -182,12 +182,14 @@ def load_data():
uniqueid
=
uniqueid
[
-
9
:]
uniqueid
=
uniqueid
[
-
9
:]
location
=
location
[:
-
1
]
location
+=
", "
if
"Fairfax Campus"
in
location
:
if
"Fairfax Campus"
in
location
:
location
=
location
.
split
(
", Fairfax Campus"
)
location
=
location
.
split
(
", Fairfax Campus
,
"
)
campus
=
"Fairfax"
campus
=
"Fairfax"
del
location
[
-
1
]
del
location
[
-
1
]
elif
"Arlington Campus"
in
location
:
elif
"Arlington Campus"
in
location
:
location
=
location
.
split
(
", Arlington Campus"
)
location
=
location
.
split
(
", Arlington Campus
,
"
)
campus
=
"Arlington"
campus
=
"Arlington"
del
location
[
-
1
]
del
location
[
-
1
]
else
:
else
:
...
...
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