add get_items

This commit is contained in:
2025-04-08 13:44:06 -03:00
parent 68ff6f282b
commit 6450e5fa7c
18 changed files with 393 additions and 195 deletions

View File

@@ -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',