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
9820c6a9
Commit
9820c6a9
authored
May 14, 2018
by
Zach Osman
Browse files
small update to quality test function
parent
2fdcdada
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
9820c6a9
...
...
@@ -101,4 +101,6 @@ venv.bak/
/site
# mypy
.mypy_cache/
\ No newline at end of file
.mypy_cache/
./masontoday
mason-today/parscript.py
View file @
9820c6a9
...
...
@@ -32,16 +32,18 @@ def qualityTest(desc):
# none, bad, okay, good
length
=
len
(
desc
)
if
length
<
10
:
if
desc
==
"Not Provided"
:
return
"none"
elif
length
<
4
0
:
elif
length
<
1
0
:
return
"bad"
elif
length
<
8
0
:
elif
length
<
4
0
:
return
"okay"
elif
length
<
10
0
:
elif
length
<
8
0
:
return
"good"
elif
length
<
100
:
return
"verygood"
else
:
return
"
?
"
return
"
excellent
"
# convertTime accepts strings in the form of ""
def
convertTime
(
stri
):
# this function is used for splicing the event times.
...
...
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