Skip to content

Commit

Permalink
0.9.0 - get_derived
Browse files Browse the repository at this point in the history
  • Loading branch information
valhuber committed Feb 6, 2021
1 parent 93001e6 commit 51ee4a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion examples/nw/tests/test_upd_order_shipped.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import logic_bank_utils.util as logic_bank_utils
from datetime import datetime

from sqlalchemy.orm import joinedload

(did_fix_path, sys_env_info) = \
logic_bank_utils.add_python_path(project_dir="LogicBank", my_file=__file__)

Expand Down Expand Up @@ -54,7 +56,9 @@ def toggle_order_shipped(self):
session.expunge(pre_cust)

print("")
test_order = session.query(models.Order).filter(models.Order.Id == 11011).join(models.Employee).one()
test_order = session.query(models.Order).filter(models.Order.Id == 11011).\
join(models.Employee).options(joinedload(models.Order.SalesRep)).\
one()
if test_order.ShippedDate is None or test_order.ShippedDate == "":
test_order.ShippedDate = str(datetime.now())
print(prt("Shipping order - ShippedDate: ['' -> " + test_order.ShippedDate + "]"))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def desc():

setup(
name="logicbank",
version="0.8.1",
version="0.9.0",
url="https://github.com/valhuber/logicbank",
license="BSD",
author="Val Huber",
Expand Down

0 comments on commit 51ee4a8

Please sign in to comment.