Skip to content

Commit

Permalink
fixup! Enable diffcalc for all scores on all gamemodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Syriiin committed Jun 7, 2024
1 parent a20c959 commit ec96c33
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions osuchan/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit ec96c33

Please sign in to comment.