Fixed requests

This commit is contained in:
2024-12-10 18:19:30 +03:00
parent 8ec0cf6b58
commit fe2b1fd014
3 changed files with 7 additions and 8 deletions

View File

@@ -29,8 +29,7 @@ def sklad_zapros():
else:
zagotovki = sklad(request)
if zagotovki.status:
material = dict(request.form)
header = f'Заготовки на складе из материала "{material["material"]}"'
header = "Поставки выбранной заготовки"
return render_template("output.html", items=zagotovki.result, header=header)
else:
return render_template("error.html", error_message=zagotovki.error_message)