Small improvements.
This commit is contained in:
parent
9ba17cbeb4
commit
367bd7644c
1 changed files with 3 additions and 6 deletions
|
@ -23,20 +23,17 @@ class Stats::TicketEscalation
|
||||||
state = 'supergood'
|
state = 'supergood'
|
||||||
if own_escalated == 0
|
if own_escalated == 0
|
||||||
state = 'supergood'
|
state = 'supergood'
|
||||||
elsif own_escalated > 1
|
elsif own_escalated <= 1
|
||||||
state = 'good'
|
state = 'good'
|
||||||
elsif own_escalated > 2
|
elsif own_escalated <= 4
|
||||||
state = 'ok'
|
state = 'ok'
|
||||||
elsif own_escalated > 5
|
|
||||||
state = 'bad'
|
|
||||||
else
|
else
|
||||||
state = 'superbad'
|
state = 'bad'
|
||||||
end
|
end
|
||||||
|
|
||||||
{
|
{
|
||||||
state: state,
|
state: state,
|
||||||
average: average,
|
average: average,
|
||||||
state: state,
|
|
||||||
own: own_escalated,
|
own: own_escalated,
|
||||||
total: all_escalated,
|
total: all_escalated,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue