개선관리 요구사항과 Google 로그인을 완료

This commit is contained in:
Yun Chan 2026-08-28 16:07:09 +09:00
parent cc0a15b7c6
commit 2a39636163
112 changed files with 10166 additions and 527 deletions

View file

@ -144,6 +144,16 @@ def _first_text_value(data: dict[str, Any]) -> str:
return ""
def _presenting_summary(data: dict[str, Any]) -> str:
"""Return the authored presenting complaint, independent of JSON key order."""
for key in ("complaint", "주호소", "presenting_complaint", "chief_complaint"):
value = data.get(key)
if isinstance(value, str) and value.strip():
return value.strip()
return _first_text_value(data)
def persona_summary(entry: CatalogPersona) -> PersonaSummary:
card = entry.card
return PersonaSummary(
@ -155,7 +165,7 @@ def persona_summary(entry: CatalogPersona) -> PersonaSummary:
difficulty=card.difficulty,
theory_target=card.theory_target,
demographics=card.demographics,
presenting_summary=_first_text_value(card.presenting),
presenting_summary=_presenting_summary(card.presenting),
source=entry.source,
degraded=entry.degraded,
)