update formatting
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user