# -*- coding: utf-8 -*-
import sys, io
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
sys.path.insert(0, 'c:\\Users\\청춘약국\\source\\pharmacy-pos-qr-system\\backend')

from app import _get_animal_drugs

drugs = _get_animal_drugs()
gestage = [d for d in drugs if '제스타제' in d['name']]

print('=== 제스타제 API 결과 ===\n')
for d in gestage:
    print(f"name: {d['name']}")
    print(f"barcode: {d['barcode']}")
    print(f"apc: {d['apc']}")
    print(f"image_url: {d['image_url']}")
