def get_user_alerts(self): return Alert.find_alert(self.email)
def get_alert_page(alert_id): alert = Alert.find_alert() render_template('alerts/alert.jinja2', alert=alert)
def check_alert_price(alert_id): Alert.find_alert(alert_id).load_item_price() return redirect(url_for('.get_alert_page', alert_id=alert_id))
def deactivate_alert(alert_id): Alert.find_alert(alert_id).activate() return redirect(url_for('users.user_alerts'))