(age_ms, aborted)
| 32 | |
| 33 | |
| 34 | def state_from_session(age_ms, aborted): |
| 35 | if aborted: |
| 36 | return 'Blocked' |
| 37 | if age_ms <= 2 * 60 * 1000: |
| 38 | return 'Doing' |
| 39 | if age_ms <= 60 * 60 * 1000: |
| 40 | return 'Review' |
| 41 | return 'Next' |
| 42 | |
| 43 | |
| 44 | def detect_official(agent_id): |