models.py 文件源码

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

项目:ssbc 作者: banwagong-news 项目源码 文件源码
def top_hourly(self):
        now = timezone.now()
        time_begin = now - datetime.timedelta(hours=1)
        cursor = self.filter(log_time__gte=time_begin).values('keyword').annotate(pv=Count('ip', distinct=True)).order_by('-pv')
        return cursor
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号