From 2eb6a038261a54f5c70312175a7c779bab43e720 Mon Sep 17 00:00:00 2001 From: ydb5755 Date: Sun, 13 Oct 2024 12:16:28 +0300 Subject: [PATCH] change files from home to line items by month --- app/routes.py | 6 +++--- app/static/{homepage.js => line_items_by_month.js} | 0 app/templates/base.html | 2 +- app/templates/{homepage.html => line_items_by_month.html} | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename app/static/{homepage.js => line_items_by_month.js} (100%) rename app/templates/{homepage.html => line_items_by_month.html} (97%) diff --git a/app/routes.py b/app/routes.py index d1010df..61d4608 100644 --- a/app/routes.py +++ b/app/routes.py @@ -23,10 +23,10 @@ def vendors(): @app.route('/') -def home(): +def line_items_by_month(): all_months = get_all_months() files = os.listdir(get_uploads_path()) - return render_template('homepage.html', + return render_template('line_items_by_month.html', files=files, all_months=all_months) @@ -165,7 +165,7 @@ def update_vendors_budget_category(vendor_id, updated_budget_name): name=updated_budget_name )) db.session.commit() - + budget_cat = db.session.execute(select(BudgetCategory).where(BudgetCategory.name == updated_budget_name)).scalar() db.session.execute(update(Vendor).values(bc_id=budget_cat.id).where(Vendor.id==vendor_id)) db.session.commit() diff --git a/app/static/homepage.js b/app/static/line_items_by_month.js similarity index 100% rename from app/static/homepage.js rename to app/static/line_items_by_month.js diff --git a/app/templates/base.html b/app/templates/base.html index bada81c..2eb7034 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -12,7 +12,7 @@ - + {% endblock content %}