alert.py 文件源码

python
阅读 34 收藏 0 点赞 0 评论 0

项目:sso-dashboard 作者: mozilla-iam 项目源码 文件源码
def find(self, user_id):
        """
        Search dynamodb for all non-expired alerts for a given user.
        :param user_id: The auth0 id of the user.
        :return: List of alerts
        """
        self.connect_dynamodb()

        response = self.dynamodb.scan(
            FilterExpression=Attr('user_id').eq(user_id)
        )

        return response.get('Items')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号