def session_list(): session_list = Session.list(limit=1000) sorter = lambda x: x['session']['start'].date() sessions_by_date = itertools.groupby(session_list, key=sorter) return render_template('sessions/all.html', **{ 'sessions_by_date': sessions_by_date, })
def landing_page(): thread_list = Thread.list(limit=15) session_list = Session.list_upcoming(limit=10) # user_list = User.list(limit=100) return render_template('landing.html', **{ # 'user_list': user_list or [], 'thread_list': thread_list, 'session_list': session_list, })
def landing_page(): thread_list = Thread.list(limit=15) session_list = Session.list_upcoming(limit=10) # user_list = User.list(limit=100) return render_template( 'landing.html', **{ # 'user_list': user_list or [], 'thread_list': thread_list, 'session_list': session_list, })