Commit 9820c6a9 authored by Zach Osman's avatar Zach Osman

small update to quality test function

parent 2fdcdada
......@@ -101,4 +101,6 @@ venv.bak/
/site
# mypy
.mypy_cache/
\ No newline at end of file
.mypy_cache/
./masontoday
......@@ -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 < 40:
elif length < 10:
return "bad"
elif length < 80:
elif length < 40:
return "okay"
elif length < 100:
elif length < 80:
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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment