Beispiel #1
0
 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()
Beispiel #2
0
 def handle(self, *args, **options):
     engine = RankEngine()
     engine._update_ranking()
Beispiel #3
0
 def save(self):
     from rank.engine import RankEngine
     super(Game, self).save()
     engine = RankEngine(self)
     if engine.update_scores():
         self.ranked=True