diff --git a/App/Requests/__init__.py b/App/Requests/__init__.py index c2a07e6..879897f 100644 --- a/App/Requests/__init__.py +++ b/App/Requests/__init__.py @@ -27,7 +27,7 @@ def sklad_zapros(): zagotovki = sklad(material) if zagotovki.status: header = f'Заготовки на складе из материала \"{material["material"]}\"' - return render_template('output.html', items=zagotovki.result, object=header) + return render_template('output.html', items=zagotovki.result, header=header) else: return render_template('error.html', error_message=zagotovki.error_message) @@ -61,6 +61,6 @@ def sellers_ship(): zagotovki = materials_per_seller(seller) if zagotovki.status: header = f'Поставки от поставщика \"{seller["seller"]}\"' - return render_template('output.html', items=zagotovki.result, object=header) + return render_template('output.html', items=zagotovki.result, header=header) else: return render_template('error.html', error_message=zagotovki.error_message) \ No newline at end of file diff --git a/App/Requests/templates/output.html b/App/Requests/templates/output.html index de25cbc..e632081 100644 --- a/App/Requests/templates/output.html +++ b/App/Requests/templates/output.html @@ -2,7 +2,7 @@ - {{ object }} + {{ header }} @@ -10,7 +10,7 @@
-

{{ object }}

+

{{ header }}

{% if items %}