@variants_bp.route('<STR_LIT>', methods=['<STR_LIT:GET>'])<EOL>def download_verified():
user_obj = store.user(current_user.email)<EOL>user_institutes = user_obj.get('<STR_LIT>')<EOL>temp_excel_dir = os.path.join(variants_bp.static_folder, '<STR_LIT>')<EOL>os.makedirs(temp_excel_dir, exist_ok=True)<EOL>written_files = controllers.verified_excel_file(store, user_institutes, temp_excel_dir)<EOL>if written_files:<EOL><INDENT>today = datetime.datetime.now().strftime('<STR_LIT>')<EOL>data = io.BytesIO()<EOL>with zipfile.ZipFile(data, mode='<STR_LIT:w>') as z:<EOL><INDENT>for f_name in pathlib.Path(temp_excel_dir).iterdir():<EOL><INDENT>zipfile.ZipFile<EOL>z.write(f_name, os.path.basename(f_name))<EOL><DEDENT><DEDENT>data.seek(<NUM_LIT:0>)<EOL>shutil.rmtree(temp_excel_dir)<EOL>return send_file(<EOL>data,<EOL>mimetype='<STR_LIT>',<EOL>as_attachment=True,<EOL>attachment_filename='<STR_LIT:_>'.join(['<STR_LIT>', '<STR_LIT>', today])+'<STR_LIT>'<EOL>)<EOL><DEDENT>else:<EOL><INDENT>flash("<STR_LIT>", '<STR_LIT>')<EOL>return redirect(request.referrer)<EOL><DEDENT>
Download all verified variants for user's cases