fix range

This commit is contained in:
2025-12-14 16:35:33 -03:00
parent 250fdbd3b1
commit 473449996f
6 changed files with 33 additions and 20 deletions

View File

@@ -14,7 +14,10 @@ dyn = DynamoDBPersistenceLayer(ENROLLMENT_TABLE, dynamodb_client)
@router.get('/<org_id>/enrollments/scheduled')
def scheduled(org_id: str, start_key: Annotated[str | None, Query] = None):
def scheduled(
org_id: str,
start_key: Annotated[str | None, Query] = None,
):
return dyn.collection.query(
key=PartitionKey(f'SCHEDULED#ORG#{org_id}'),
start_key=start_key,