diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..c9e5bdbc Binary files /dev/null and b/.DS_Store differ diff --git a/app.py b/app.py index 50f4e29d..aeeb67fc 100644 --- a/app.py +++ b/app.py @@ -46,6 +46,7 @@ class Order(Base): product_quantity = Column('Product Quantity', Integer) order_date = Column('Order Date', DateTime) shipping_date = Column('Shipping Date', DateTime) + delivery_date = Column('Delivery Date', DateTime) # define routes # route to display orders @@ -85,6 +86,7 @@ def add_order(): product_quantity = request.form.get('product_quantity') order_date = request.form.get('order_date') shipping_date = request.form.get('shipping_date') + delivery_date = request.form['delivery_date'] # Create a session to interact with the database session = Session() @@ -98,7 +100,8 @@ def add_order(): product_code=product_code, product_quantity=product_quantity, order_date=order_date, - shipping_date=shipping_date + shipping_date=shipping_date, + delivery_date=delivery_date ) # Add the new order to the session and commit to the database diff --git a/templates/orders.html b/templates/orders.html index 9372e2d0..f9be78ea 100644 --- a/templates/orders.html +++ b/templates/orders.html @@ -27,6 +27,7 @@