From 9f6fffa4f4fb20297bc6e88a8946a3a9d4d7c688 Mon Sep 17 00:00:00 2001 From: Xeniac Date: Fri, 22 Dec 2017 10:54:11 +0100 Subject: [PATCH] =?UTF-8?q?Noch=20mehr=20Einstellungen=20f=C3=BCr=20Kasu?= =?UTF-8?q?=20Ranking,=20um=20es=20an=20das=20neue=20Dan=20System=20anpass?= =?UTF-8?q?en=20zu=20k=C3=B6nnen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/kasu/settings.py | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/kasu/settings.py b/src/kasu/settings.py index ea63e90..111e0f9 100644 --- a/src/kasu/settings.py +++ b/src/kasu/settings.py @@ -229,7 +229,7 @@ LOGGING = { 'loggers': { 'django': { 'handlers': ['console'], - 'level': 'INFO', + 'level': 'DEBUG', 'propagate': True, }, 'django.request': { @@ -246,6 +246,20 @@ LOGGING = { } } +################################ +# Settings for mahjong_ranking # +################################ + +MIN_HANCHANS_FOR_LADDER = 5 +RANKING_EXPORT_PATH = path.join(PROJECT_PATH, 'backup', 'mahjong_ranking') + +# Old Tournament System +TOURNAMENT_POINT_SYSTEM = True +TOURNAMENT_WIN_BONUSPOINTS = 4 +TOURNAMENT_FLAWLESS_VICTORY_BONUSPOINTS = 8 + +# Old Dan System +DAN_ALLOW_DROP_DOWN = True DAN_RANKS = ( (80, 9), (70, 8), @@ -255,7 +269,7 @@ DAN_RANKS = ( (30, 4), (20, 3), (10, 2), - (0, 1), + (-1, 1), ) KYU_RANKS = ( @@ -268,13 +282,9 @@ KYU_RANKS = ( (15, 7), (10, 8), (5, 9), - (0, 10), + (-1, 10), ) -DAN_ALLOW_DROP_DOWN = True -MIN_HANCHANS_FOR_LADDER = 5 -RANKING_EXPORT_PATH = path.join(PROJECT_PATH, 'backup', 'mahjong_ranking') - try: from .local_settings import * # Ignore PyLintBear (W0401, W0614) except ImportError: