Count IT infra work as remote in monthly report stats.
Infra/leadership channel no longer looks like on-site visits; labels clarify remote-only infrastructure. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -191,7 +191,10 @@ def build_conclusions(report: dict, company: dict | None = None) -> list[dict]:
|
||||
bucket = resolve_work_bucket(staff_id, emp, company)
|
||||
n = int(emp.get('tasks_count') or 0) + int(emp.get('systems_count') or 0)
|
||||
if bucket == 'infra':
|
||||
# Инфраструктура у нас ведётся удалённо — в % «с выездом» не попадает,
|
||||
# но входит в «удаленно решено» + отдельный абзац про инфра.
|
||||
counts['infra'] += n
|
||||
counts['remote'] += n
|
||||
elif bucket == 'remote':
|
||||
counts['remote'] += n
|
||||
elif bucket == 'field':
|
||||
|
||||
Reference in New Issue
Block a user