fix billing
This commit is contained in:
@@ -31,6 +31,8 @@ def postback():
|
||||
progress = round(Decimal(json_body['ANDAMENTO']), 2)
|
||||
enrollment_id = dyn.collection.get_item(
|
||||
KeyPair(
|
||||
# Post-migration: uncomment the following line
|
||||
# pk='KONVIVA',
|
||||
pk='konviva',
|
||||
sk=SortKey(json_body['ID_MATRICULA'], path_spec='enrollment_id'),
|
||||
),
|
||||
@@ -41,7 +43,7 @@ def postback():
|
||||
update_progress(enrollment_id, progress, dynamodb_persistence_layer=dyn)
|
||||
|
||||
if status == 'COMPLETED':
|
||||
set_score(enrollment_id, score, dynamodb_persistence_layer=dyn)
|
||||
set_score(enrollment_id, score, progress, dynamodb_persistence_layer=dyn)
|
||||
|
||||
return Response(status_code=HTTPStatus.NO_CONTENT)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user