data_access.py 文件源码

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

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


问题


面经


文章

微信
公众号

扫码关注公众号