consumers.py 文件源码

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

项目:Interactive_estimation 作者: adminq80 项目源码 文件源码
def start_initial(game):
    round_data, users_plots = get_round(game)
    state = 'initial'

    if round_data is None:
        game.end_time = timezone.now()
        game.save()
        game.broadcast(action='redirect', url=reverse('interactive:exit'))
        return
    else:
        cache.set(game.id, {'state': state,
                            'round_data': round_data,
                            'users_plots': users_plots,
                            })
    initial(game, round_data, users_plots)
    task.deferLater(reactor, 1, game_state_checker, game, state, round_data, users_plots).addErrback(twisted_error)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号