#NEWLINE# @ app . route ( '/' ) #NEWLINE# def index( ) : #NEWLINE# #INDENT# search_query = request . args . get ( 'q' ) #NEWLINE# if search_query : #NEWLINE# #INDENT# query = Entry . search ( search_query ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# query = Entry . public ( ) . order_by ( Entry . timestamp . desc ( ) ) #NEWLINE# #UNINDENT# return object_list ( 'index.html' , query , search = search_query , check_bounds = False )