update formatting
This commit is contained in:
@@ -19,7 +19,7 @@ def update_progress(
|
||||
dynamodb_persistence_layer: DynamoDBPersistenceLayer,
|
||||
):
|
||||
now_ = now()
|
||||
ttl_ = ttl(start_dt=now_, days=7)
|
||||
reminder_ttl = ttl(start_dt=now_, days=7)
|
||||
|
||||
try:
|
||||
with dynamodb_persistence_layer.transact_writer() as transact:
|
||||
@@ -43,7 +43,7 @@ def update_progress(
|
||||
item={
|
||||
'id': id,
|
||||
'sk': 'SCHEDULE#REMINDER_NO_ACTIVITY_AFTER_7_DAYS',
|
||||
'ttl': ttl_,
|
||||
'ttl': reminder_ttl,
|
||||
'created_at': now_,
|
||||
}
|
||||
)
|
||||
@@ -81,7 +81,7 @@ def update_progress(
|
||||
item={
|
||||
'id': id,
|
||||
'sk': 'SCHEDULE#REMINDER_NO_ACTIVITY_AFTER_7_DAYS',
|
||||
'ttl': ttl_,
|
||||
'ttl': reminder_ttl,
|
||||
'created_at': now_,
|
||||
}
|
||||
)
|
||||
@@ -459,4 +459,4 @@ class EnrollmentNotFoundError(NotFoundError):
|
||||
|
||||
class EnrollmentConflictError(BadRequestError):
|
||||
def __init__(self, *_):
|
||||
super().__init__('Enrollment conflict')
|
||||
super().__init__('Enrollment status conflict')
|
||||
|
||||
Reference in New Issue
Block a user