summaryrefslogtreecommitdiff
path: root/app/modules/orders
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2022-07-03 20:21:02 +0200
committerMarius Peter <marius.peter@tutanota.com>2022-07-03 20:21:02 +0200
commiteba4c1a3113d24319bccc5c52d4d93838334bd31 (patch)
treefe95881d42a0b4191a9371f82eaf66b9390af047 /app/modules/orders
parent5160b8a3ac9fc27c2b31206aed735a15de0099e9 (diff)
db now in models; modules.
Diffstat (limited to 'app/modules/orders')
-rw-r--r--app/modules/orders/routes.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/modules/orders/routes.py b/app/modules/orders/routes.py
index 0d2e66a..cf4e70a 100644
--- a/app/modules/orders/routes.py
+++ b/app/modules/orders/routes.py
@@ -15,13 +15,9 @@ from flask import (
from flask_login import login_required, current_user
-# from datetime import datetime
-import inspect
-
-from ... import db
-from ...models import Module, Order
+from ...models import db, Module, Order, Invoice
from .forms import *
@@ -34,6 +30,7 @@ def view():
modules = Module.query.all()
page = request.args.get('page', 1, type=int)
orders = Order.query.order_by(Order.primary_key.desc()).paginate(page=page, per_page=5)
+ invoices = Invoice.query.order_by(Invoice.primary_key.desc()).paginate(page=page, per_page=5)
module = "orders"
flash(f"Successfully accessed module {module}.", "info")
flash(f"Still fighting against styling in {module}.", "error")
Copyright 2019--2024 Marius PETER