From 07abd1ce186a72bc3cc809e49072babbe08db0fb Mon Sep 17 00:00:00 2001 From: Yukine Date: Thu, 5 Jun 2025 14:53:19 +0200 Subject: [PATCH] fix(pm_handler): we already cast str to bool in the config --- backend/handler/metadata/pm_handler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/handler/metadata/pm_handler.py b/backend/handler/metadata/pm_handler.py index 0b17ac843..d44a64de6 100644 --- a/backend/handler/metadata/pm_handler.py +++ b/backend/handler/metadata/pm_handler.py @@ -9,8 +9,6 @@ from utils.context import ctx_httpx_client from backend.config import PLAYMATCH_ENABLED -PM_ENABLED: Final = str.lower(PLAYMATCH_ENABLED) == "true" - class PlaymatchProvider(str, Enum): """ @@ -76,7 +74,7 @@ class PlaymatchHandler: :return: The IGDB provider ID if a match is found, otherwise None. :raises HTTPException: If the request fails or the service is unavailable. """ - if not PM_ENABLED: + if not PLAYMATCH_ENABLED: log.debug("Playmatch is not enabled, skipping identification.") return None