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:
2026-09-14 14:17:08 +03:00
parent f0a23caa7b
commit 31eecb5001
3 changed files with 13 additions and 8 deletions
+3
View File
@@ -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':