diff --git a/backend/app.py b/backend/app.py index d29a326..943d283 100644 --- a/backend/app.py +++ b/backend/app.py @@ -2703,6 +2703,7 @@ def _get_animal_drug_rag(apc_codes): result = conn.execute(text(f""" SELECT apc, product_name, main_ingredient, + component_name_ko, llm_pharm->>'사용가능 동물' as target_animals, llm_pharm->>'분류' as category, llm_pharm->>'체중/부위' as dosage_weight, @@ -2725,7 +2726,7 @@ def _get_animal_drug_rag(apc_codes): 'usage_period': row.usage_period or '', 'age_restriction': row.age_restriction or '', 'owner_caution': row.owner_caution or '', - 'main_ingredient': row.main_ingredient_detail or row.main_ingredient or '', + 'main_ingredient': row.component_name_ko or row.main_ingredient_detail or row.main_ingredient or '', 'description': row.description or '', 'usage_for': row.usage_for or '' }