fix retain key
This commit is contained in:
@@ -23,7 +23,7 @@ def create_course(
|
||||
transact.put(
|
||||
item={
|
||||
'id': course.id,
|
||||
'sk': 'tenant',
|
||||
'sk': 'metadata#tenant',
|
||||
'org_id': org.id,
|
||||
'name': org.name,
|
||||
'create_date': now_,
|
||||
@@ -42,7 +42,8 @@ def update_course(
|
||||
transact = TransactItems(persistence_layer.table_name)
|
||||
transact.update(
|
||||
key=KeyPair(id, '0'),
|
||||
update_expr='SET #name = :name, access_period = :access_period, cert = :cert, update_date = :update_date',
|
||||
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