add get_items
This commit is contained in:
@@ -15,7 +15,7 @@ def create_course(
|
||||
transact.put(
|
||||
item={
|
||||
'sk': '0',
|
||||
'tenant:org_id': {org.id},
|
||||
'tenant__org_id': {org.id},
|
||||
'create_date': current_time,
|
||||
**course.model_dump(),
|
||||
}
|
||||
@@ -41,7 +41,7 @@ def update_course(
|
||||
current_time = now()
|
||||
transact = TransactItems(persistence_layer.table_name)
|
||||
transact.update(
|
||||
key=KeyPair(course.id, '0'), # type: ignore
|
||||
key=KeyPair(id, '0'),
|
||||
update_expr='SET #name = :name, access_period = :access_period, cert = :cert, update_date = :update_date',
|
||||
expr_attr_names={
|
||||
'#name': 'name',
|
||||
|
||||
Reference in New Issue
Block a user