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

small update to quality test function

parent 2fdcdada
...@@ -101,4 +101,6 @@ venv.bak/ ...@@ -101,4 +101,6 @@ venv.bak/
/site /site
# mypy # mypy
.mypy_cache/ .mypy_cache/
\ No newline at end of file
./masontoday
...@@ -32,16 +32,18 @@ def qualityTest(desc): ...@@ -32,16 +32,18 @@ def qualityTest(desc):
# none, bad, okay, good # none, bad, okay, good
length = len(desc) length = len(desc)
if length < 10: if desc == "Not Provided":
return "none" return "none"
elif length < 40: elif length < 10:
return "bad" return "bad"
elif length < 80: elif length < 40:
return "okay" return "okay"
elif length < 100: elif length < 80:
return "good" return "good"
elif length < 100:
return "verygood"
else: else:
return "?" return "excellent"
# convertTime accepts strings in the form of "" # convertTime accepts strings in the form of ""
def convertTime(stri): # this function is used for splicing the event times. 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