data_access.py 文件源码

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

项目:dota2-messenger-platform 作者: nico-arianto 项目源码 文件源码
def get_match_item_summary_aggregate(self, match_id):
        return Database.session.query(MatchItem.account_id,
                                  MatchItem.item_id,
                                  func.sum(text('match_items.player_win')).label('player_win'),
                                  func.count(MatchItem.player_win).label('matches')). \
            filter(MatchItem.match_id >= match_id). \
            group_by(MatchItem.account_id). \
            group_by(MatchItem.item_id). \
            all()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号