def conference_calendar(): """ A vCal file of upcoming conferences. """ events = [ ( event.abbreviation, event.name, event.where(), (event.startDate, event.endDate) ) for event in db.upcoming() ] return utils.make_vcal(events, 'Upcoming Conferences')
def main(): """ Main "entry point" for the site. """ # What tags are we using to filter results? tag_names = utils.tags() current_tags = [ id for (id, name) in db.get_tags(tag_names) ] if len(tag_names) == 0: tag_names = None # Render from the 'main' template. return flask.render_template('main.html', tags = tag_names, deadlines = db.deadlines(current_tags), upcoming = db.upcoming(current_tags), recent = db.recent(current_tags), utils = utils)