@cases_bp.route('<STR_LIT>')<EOL>@templated('<STR_LIT>')<EOL>def cases(institute_id):
institute_obj = institute_and_case(store, institute_id)<EOL>query = request.args.get('<STR_LIT>')<EOL>limit = <NUM_LIT:100><EOL>if request.args.get('<STR_LIT>'):<EOL><INDENT>limit = int(request.args.get('<STR_LIT>'))<EOL><DEDENT>skip_assigned = request.args.get('<STR_LIT>')<EOL>is_research = request.args.get('<STR_LIT>')<EOL>all_cases = store.cases(collaborator=institute_id, name_query=query,<EOL>skip_assigned=skip_assigned, is_research=is_research)<EOL>data = controllers.cases(store, all_cases, limit)<EOL>sanger_unevaluated = controllers.get_sanger_unevaluated(store, institute_id, current_user.email)<EOL>if len(sanger_unevaluated)> <NUM_LIT:0>:<EOL><INDENT>data['<STR_LIT>'] = sanger_unevaluated<EOL><DEDENT>return dict(institute=institute_obj, skip_assigned=skip_assigned,<EOL>is_research=is_research, query=query, **data)<EOL>
Display a list of cases for an institute.