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
9820c6a9
Commit
9820c6a9
authored
May 14, 2018
by
Zach Osman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small update to quality test function
parent
2fdcdada
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
.gitignore
.gitignore
+3
-1
mason-today/parscript.py
mason-today/parscript.py
+7
-5
No files found.
.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