from src.models.alerts.alert import Alert
from src.commom.database import Database

Database.initialize()

alerts_need_updates = Alert.find_update()
# Then I have a list of items that needed update
# print(alerts_need_updates)

for alert in alerts_need_updates:
    print(alert)
    alert.load_item_price()
    alert.send_email_if_price_reached()
