recalculating only the new hanchans shoud do the trick now.

the racalc cronjob reports erronous partly recalculations now.
A lot of code cleanups
This commit is contained in:
2017-11-01 09:53:52 +01:00
parent 42a6ebedf9
commit abeb86d48f
15 changed files with 87 additions and 62 deletions

View File

@@ -63,6 +63,11 @@ class Game(models.Model):
objects = managers.GameManager()
class Meta(object):
"""Display rankings by placement, best players first."""
ordering = ('-event__start', '-id')
def __str__(self):
return _("Mai-Star Game with {0} from {1:%Y-%m-%d}").format(
self.player_names, self.event.start

View File

@@ -78,6 +78,8 @@ class ListPlayerGames(PlayerScore):
template_name = 'maistar_ranking/player_game_list.html'
paginate_by = 25
context_object_name = 'game_list'
user = None
season = None
def get_context_data(self, **kwargs):
context = super(ListPlayerGames, self).get_context_data()