in src/dynamo.py [0:0]
def read_from_database(dynamodb, table_name: str) -> List[Dict[str, str]]:
table = dynamodb.Table(table_name)
current_time = int(time.time())
cutoff_time = current_time - 6000
filter_expression = Attr('CheckTime').between(cutoff_time, current_time)
response = table.scan(
FilterExpression=filter_expression,
Limit=10
)
return response['Items']