def update_item()

in source/backend/rekognize-face-lambda/function.py [0:0]


def update_item(face_id, similarity):
    ts = int(time.time())
    dynamodb.update_item(
        TableName=DYNAMODB_TABLE_NAME,
        Key={'RekognitionId': {'S': face_id}},
        UpdateExpression="SET GatePassed = :ts",
        ExpressionAttributeValues={':ts':{'S': str(ts)}}
        )