Eine Menge Aufräumarbeiten.
* Eine Testsuite um Mahrjong Ranking Berechnungen zu testen * Erste Arbeiten um die Workarounds aus dem "utils" Paket los zu werden. * Vieles am Code umformatiert für PEP8 conformität
This commit is contained in:
@@ -26,6 +26,8 @@ def recalculate(modeladmin, request, queryset):
|
||||
for ladder_ranking in queryset:
|
||||
set_dirty(user=ladder_ranking.user_id,
|
||||
season=ladder_ranking.season)
|
||||
|
||||
|
||||
recalculate.short_description = _("Recalculate")
|
||||
|
||||
|
||||
@@ -33,6 +35,8 @@ def confirm(modeladmin, request, queryset):
|
||||
for hanchan in queryset:
|
||||
hanchan.confirmed = True
|
||||
hanchan.save()
|
||||
|
||||
|
||||
confirm.short_description = _("Confirm")
|
||||
|
||||
|
||||
@@ -40,6 +44,8 @@ def unconfirm(modeladmin, request, queryset):
|
||||
for hanchan in queryset:
|
||||
hanchan.confirmed = False
|
||||
hanchan.save()
|
||||
|
||||
|
||||
unconfirm.short_description = _('Set unconfirmed')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user