Private
Public Access
1
0

completing new colors

This commit is contained in:
Sander Roosendaal
2018-11-13 14:02:42 +01:00
parent 3fcd5abb01
commit ff331330f7
6 changed files with 71 additions and 30 deletions

View File

@@ -226,6 +226,7 @@ cratiocolors = {
'over target': "purple",
'way over target': "violet",
'missed': "black",
'not assigned': "",
'not done': "white",
}
@@ -312,9 +313,11 @@ def is_session_complete_ws(ws,ps):
return ratio,'partial',completiondate
else:
thevalue = 0
for key,value in cratios.iteritems():
if ratio>value:
if ratio>value and value>thevalue:
verdict = key
thevalue = value
completiondate = ws.reverse()[0].date
return ratio,verdict,completiondate