Esempio n. 1
0
def get(phone_number):
    response = dynamo_client.get_item(
        TableName=TABLE_NAME,
        Key={'phone_number': {'S': sanitize_phone_number(phone_number)}}
    )
    if 'Item' in response:
        return response['Item']
    else:
        return None
Esempio n. 2
0
def get(team_id):
    response = dynamo_client.get_item(
        TableName=TABLE_NAME,
        Key={'team_id': {'S': team_id}}
    )
    return response.get('Item', None)