models.py 文件源码

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

项目:mccelections 作者: mcclatchy 项目源码 文件源码
def calculate_vote(sender, instance, **kwargs):
    ## don't fire if it's a gdoc result
    if instance.gdoc_import != True:
        electiondate_arg = str(instance.electiondate)
        call_command('calculate_vote', electiondate_arg)
        ## needs to be written <-- not doing this bc it would mess with manual results w/ multiple winners, winners that req 2/3, etc
        # call_command('declare_winner')


## NEEDS TO STAY models.model so PSQL import works
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号