Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mason-today-web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
mason-today-web
Commits
626a818c
Commit
626a818c
authored
Apr 26, 2018
by
Landon DeCoito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved some stuff around i think
parent
45ed3dd9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
230 additions
and
247 deletions
+230
-247
mason-today/app.py
mason-today/app.py
+6
-6
mason-today/parscript.py
mason-today/parscript.py
+224
-241
No files found.
mason-today/app.py
View file @
626a818c
mason-today/parscript.py
View file @
626a818c
...
...
@@ -26,23 +26,6 @@ class eventException: #this class is just an exception for our use
def
__str__
(
self
):
return
self
.
__message
def
doTheTime
(
strin
):
strin
=
strin
.
replace
(
" "
,
""
)
strin
=
strin
.
split
(
"-"
)
returnlist
=
[
""
,
""
]
try
:
returnlist
[
1
]
=
convertTime
(
strin
[
1
])
except
ValueError
:
raise
eventException
(
str
(
strin
))
if
not
(
strin
[
0
][
-
2
:]
==
"am"
)
and
not
(
strin
[
0
][
-
2
:]
==
"pm"
):
if
(
strin
[
1
][
-
2
:]
==
"am"
):
returnlist
[
0
]
=
convertTime
(
strin
[
0
]
+
"am"
)
else
:
returnlist
[
0
]
=
convertTime
(
strin
[
0
]
+
"pm"
)
else
:
returnlist
[
0
]
=
convertTime
(
strin
[
0
])
return
returnlist
#convertTime accepts strings in the form of ""
def
convertTime
(
stri
):
#this function is used for splicing the event times.
if
(
stri
[
-
2
:]
==
"pm"
or
stri
[
-
2
:]
==
"PM"
):
#checks to see if the time presented is pm
...
...
@@ -275,4 +258,4 @@ def load_data():
dictlist
.
append
({
"id"
:
uniqueid
,
"error"
:
error
})
return
dictlist
#everything in the house is fuzzy, stupid dogs were acting like pollinators, if that's how you even spell it
#
everything in the house is fuzzy, stupid dogs were acting like pollinators, if that's how you even spell it
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