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