def maybe_add_show(show, venue, shows): if show is None: return if show.start_date >= util.today(timezone=venue.timezone): shows.append(show)
def list_current(cls): return cls.query.filter(cls.start_date >= util.today()).order_by(cls.start_date)