change files from home to line items by month
This commit is contained in:
parent
856a7fe491
commit
2eb6a03826
4 changed files with 5 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<div class="collapse navbar-collapse justify-content-center" id="navbarNav">
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="{{url_for('home')}}">Home <span class="sr-only">(current)</span></a>
|
||||
<a class="nav-link" href="{{url_for('line_items_by_month')}}">Line Items By Month</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{url_for('vendors')}}">Vendors</a>
|
||||
|
|
|
|||
|
|
@ -73,5 +73,5 @@
|
|||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<script src="{{url_for('.static', filename='homepage.js')}}"></script>
|
||||
<script src="{{url_for('.static', filename='line_items_by_month.js')}}"></script>
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue