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