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 %}