#NEWLINE# def GET( self ) : #NEWLINE# #INDENT# user = account . get_current_user ( ) #NEWLINE# if user : #NEWLINE# #INDENT# raise web . seeother ( '/dashboard' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# pending_workshops = Workshop . findall ( status = 'pending' , order = 'date' ) #NEWLINE# upcoming_workshops = Workshop . findall ( status = 'confirmed' , order = 'date' ) #NEWLINE# completed_workshops = Workshop . findall ( status = 'completed' , order = 'date desc' ) #NEWLINE# pending_workshops = [ w for w in pending_workshops if ( pending_workshops . date >= datetime . date . today ( ) ) ] #NEWLINE# return render_template ( 'home.html' , pending_workshops = pending_workshops , upcoming_workshops = upcoming_workshops , completed_workshops = completed_workshops )