view.py 文件源码

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

项目:irisett 作者: beebyte 项目源码 文件源码
def get(self) -> web.Response:
        monitor_id = cast(int, require_int(get_request_param(self.request, 'monitor_id')))
        if 'include_all' in self.request.rel_url.query:
            contacts = await get_all_contacts_for_active_monitor(self.request.app['dbcon'], monitor_id)
        else:
            contacts = object_models.asdict(
                await get_contacts_for_active_monitor(self.request.app['dbcon'], monitor_id)
            )
        ret = object_models.list_asdict(contacts)
        return web.json_response(ret)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号