Изменение названий методов
This commit is contained in:
@@ -4,8 +4,8 @@ from os import path
|
||||
from checker import check_auth
|
||||
from flask import Blueprint, render_template, request, url_for
|
||||
|
||||
from .requests_model import (materials_names, materials_per_seller,
|
||||
sellers_names, sklad)
|
||||
from .requests_model import (materials_per_seller, sellers_names, sklad,
|
||||
workpiece_names)
|
||||
|
||||
with open(path.join(path.dirname(__file__), "zapros_menu.json"), encoding="utf-8") as f:
|
||||
requests_list = json.load(f)
|
||||
@@ -24,8 +24,8 @@ def requests():
|
||||
@check_auth
|
||||
def sklad_zapros():
|
||||
if request.method == "GET":
|
||||
materials = materials_names()
|
||||
return render_template("zagotovki.html", materials=materials)
|
||||
workpiece = workpiece_names()
|
||||
return render_template("zagotovki.html", workpiece=workpiece)
|
||||
else:
|
||||
zagotovki = sklad(request)
|
||||
if zagotovki.status:
|
||||
|
||||
Reference in New Issue
Block a user