def recent_changes(request):
 page = max(1, request.args.get('page', type=int))
 query = RevisionedPage.query.order_by(RevisionedPage.revision_id.desc())
 return Response(generate_template('recent_changes.html', pagination=Pagination(query, 20, page, 'Special:Recent_Changes')))

def recent_changes ( request ) : page = max ( 1 , request . args . get ( 'page' , type = int ) ) query = RevisionedPage . query . order_by ( RevisionedPage . revision_id . desc ( ) ) return Response ( generate_template ( 'recent_changes.html' , pagination = Pagination ( query , 20 , page , 'Special:Recent_Changes' ) ) )
display the recent changes .