'Method return all events'

@staticmethod
def get_all_events_with_discounts():

    return Event.query.order_by(desc(Event.id)).filter_by(deleted_at=None).filter((Event.discount_code_id is not None)).filter((Event.discount_code_id > 0)).all()
