Изменение названий методов

This commit is contained in:
2024-12-12 10:18:28 +03:00
parent 5505d4bb2a
commit 42de5a02e4
6 changed files with 10 additions and 10 deletions

View File

@@ -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: