コード例 #1
0
ファイル: re_score.py プロジェクト: Yipit/yipit-matchup
 def handle(self, *args, **options):
     RankLog.objects.all().delete()
     Account.objects.all().update(rank=None, rating=1000)
     for game in Game.objects.all().order_by('date'):
         print game        
         engine = RankEngine(game=game)
         engine.update_scores()
コード例 #2
0
ファイル: update_ranking.py プロジェクト: Yipit/yipit-matchup
 def handle(self, *args, **options):
     engine = RankEngine()
     engine._update_ranking()
コード例 #3
0
ファイル: models.py プロジェクト: Yipit/yipit-matchup
 def save(self):
     from rank.engine import RankEngine
     super(Game, self).save()
     engine = RankEngine(self)
     if engine.update_scores():
         self.ranked=True