Skip to content

Commit e74918e

Browse files
committed
typos
1 parent e2b246a commit e74918e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,6 @@ cache.invalidate_entity(User.__table__, user_id)
205205
# Here we explicitly *have* to say that we stick to order entity to be tracked for changes
206206
@memory_cache(Order, id_key=lambda item: item[0].id)
207207
def get_orders_with_user(session: Session, order_id: str) -> List[Row[Tuple[Order, User]]]:
208-
nonlocal call_count
209-
call_count += 1
210208
return session.query(Order, User).join(User).filter(Order.id == order_id).all()
211209

212210
```

tests/test_sqlalchemy_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def test_cache_pair_of_objects_by_join(db_session):
377377
# Counter to track function calls
378378
call_count = 0
379379

380-
# Create cached function that selects product as entity for reference from returned pairs
380+
# Create cached function that selects order as entity for reference from returned pairs
381381
@memory_cache(Order, id_key=lambda item: item[0].id)
382382
def get_orders_with_user(session: Session, order_id: str) -> List[Row[Tuple[Order, User]]]:
383383
nonlocal call_count

0 commit comments

Comments
 (0)