update formatting

This commit is contained in:
2025-08-29 13:04:28 -03:00
parent 50ce152880
commit d05f660c9a

View File

@@ -19,7 +19,7 @@ def update_progress(
dynamodb_persistence_layer: DynamoDBPersistenceLayer, dynamodb_persistence_layer: DynamoDBPersistenceLayer,
): ):
now_ = now() now_ = now()
ttl_ = ttl(start_dt=now_, days=7) reminder_ttl = ttl(start_dt=now_, days=7)
try: try:
with dynamodb_persistence_layer.transact_writer() as transact: with dynamodb_persistence_layer.transact_writer() as transact:
@@ -43,7 +43,7 @@ def update_progress(
item={ item={
'id': id, 'id': id,
'sk': 'SCHEDULE#REMINDER_NO_ACTIVITY_AFTER_7_DAYS', 'sk': 'SCHEDULE#REMINDER_NO_ACTIVITY_AFTER_7_DAYS',
'ttl': ttl_, 'ttl': reminder_ttl,
'created_at': now_, 'created_at': now_,
} }
) )
@@ -81,7 +81,7 @@ def update_progress(
item={ item={
'id': id, 'id': id,
'sk': 'SCHEDULE#REMINDER_NO_ACTIVITY_AFTER_7_DAYS', 'sk': 'SCHEDULE#REMINDER_NO_ACTIVITY_AFTER_7_DAYS',
'ttl': ttl_, 'ttl': reminder_ttl,
'created_at': now_, 'created_at': now_,
} }
) )
@@ -459,4 +459,4 @@ class EnrollmentNotFoundError(NotFoundError):
class EnrollmentConflictError(BadRequestError): class EnrollmentConflictError(BadRequestError):
def __init__(self, *_): def __init__(self, *_):
super().__init__('Enrollment conflict') super().__init__('Enrollment status conflict')