This repository has been archived on 2025-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
RIS/App/Report/__init__.py

22 lines
631 B
Python

from flask import request, Blueprint, render_template
from checker import check_auth
from os import path
import json
with open(path.join(path.dirname(__file__), 'reports.json')) as f:
report_list = json.load(f)
report_bp = Blueprint('report_bp', __name__, template_folder='templates')
@report_bp.route('/', methods=['GET', 'POST'])
@check_auth
def menu():
if request.method == 'GET':
return render_template('report_menu.html', options=report_list)
@report_bp.route('/quaterly', methods=['GET', 'POST'])
@check_auth
def quaterly():
if request.method == 'GET':
return render_template('quaterly.html')