From ec96c33e015ad990a3d0a0b8c03aedc0ec875132 Mon Sep 17 00:00:00 2001 From: Samuel Cattini-Schultz Date: Fri, 7 Jun 2024 23:27:15 +1000 Subject: [PATCH] fixup! Enable diffcalc for all scores on all gamemodes --- osuchan/settings.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/osuchan/settings.py b/osuchan/settings.py index 7aab338..7b40cc6 100644 --- a/osuchan/settings.py +++ b/osuchan/settings.py @@ -8,6 +8,8 @@ from celery.schedules import crontab from pydantic_settings import BaseSettings +from common.osu.enums import Gamemode + class EnvSettings(BaseSettings): SECRET_KEY: str @@ -334,10 +336,10 @@ class EnvSettings(BaseSettings): } DEFAULT_DIFFICULTY_CALCULATORS = { - "osu": "difficalcy-osu", - "taiko": "difficalcy-taiko", - "catch": "difficalcy-catch", - "mania": "difficalcy-mania", + Gamemode.STANDARD: "difficalcy-osu", + Gamemode.TAIKO: "difficalcy-taiko", + Gamemode.CATCH: "difficalcy-catch", + Gamemode.MANIA: "difficalcy-mania", } DIFFICALCY_OSU_URL = f"http://{env_settings.DIFFICALCY_OSU_HOST}"