diff --git a/App/Report/__init__.py b/App/Report/__init__.py index 9dbf937..068da0c 100644 --- a/App/Report/__init__.py +++ b/App/Report/__init__.py @@ -1,9 +1,9 @@ from flask import request, Blueprint, render_template -from ..checker import check_auth +from checker import check_auth from os import path import json -with open(path.join(path.dirname(__file__), 'zapros_menu.json')) as f: +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') @@ -14,8 +14,8 @@ def menu(): if request.method == 'GET': return render_template('report_menu.html', options=report_list) -@report_bp.route('/quarterly', methods=['GET', 'POST']) +@report_bp.route('/quaterly', methods=['GET', 'POST']) @check_auth -def quarterly(): +def quaterly(): if request.method == 'GET': - return render_template('quarterly.html') + return render_template('quaterly.html') diff --git a/App/Report/templates/quartely.html b/App/Report/templates/quaterly.html similarity index 100% rename from App/Report/templates/quartely.html rename to App/Report/templates/quaterly.html diff --git a/App/data/db_access.json b/App/data/db_access.json index 0adc917..24d1e7e 100644 --- a/App/data/db_access.json +++ b/App/data/db_access.json @@ -1,5 +1,5 @@ { "Менеджер": ["auth_bp", "requests_bp"], - "Управляющий": ["auth_bp", "requests_bp"], - "Поставщик": ["auth_bp", "requests_bp", "waybill_bp"] + "Управляющий": ["auth_bp", "requests_bp", "report_bp"], + "Поставщик": ["auth_bp", "waybill_bp"] } \ No newline at end of file