Уровень стресса: только интерпретация + 'по Баевскому'; удалена Моргания

This commit is contained in:
apuc committed 2026-09-20 09:00:55 +03:00
1 parent ea87de7d94
commit c6f658fb2f
1 file changed
+2 -11
+2 -11
View File
@@ -263,9 +263,9 @@ def interpret_result(data: dict) -> dict:
stress_status, stress_comment = "danger", "Высокий уровень стресса"
metrics.append({
"name": "Уровень стресса",
"value": f"{stress}",
"value": stress_comment,
"status": stress_status,
"comment": stress_comment,
"comment": "Оценка по Баевскому",
})
if stress_status == "warning":
warnings.append("Повышенный уровень стресса")
@@ -290,15 +290,6 @@ def interpret_result(data: dict) -> dict:
"comment": rig_comment,
})
# ── Моргания ───────────────────────────────────────────────
blinks = data.get("blinks", 0)
metrics.append({
"name": "Моргания",
"value": f"{blinks}",
"status": "info",
"comment": "За время сканирования",
})
# ── Сводка ─────────────────────────────────────────────────
summary = f"{gender.capitalize()}, {age} лет."