completing new colors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user