From 22c4456153d8d13f8aaef237b28a20fa980d17ff Mon Sep 17 00:00:00 2001 From: Andrei Neagu <5694077+GitHK@users.noreply.github.com> Date: Mon, 16 Sep 2024 17:07:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20Redis=20issue=20where=20?= =?UTF-8?q?keys=20ended=20up=20in=20the=20wrong=20deployment.=20(#6368)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Andrei Neagu Co-authored-by: matusdrobuliak66 <60785969+matusdrobuliak66@users.noreply.github.com> --- packages/settings-library/src/settings_library/redis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/settings-library/src/settings_library/redis.py b/packages/settings-library/src/settings_library/redis.py index 3a8cefb1085..656ffdd2e71 100644 --- a/packages/settings-library/src/settings_library/redis.py +++ b/packages/settings-library/src/settings_library/redis.py @@ -1,4 +1,4 @@ -from enum import Enum +from enum import IntEnum from pydantic import parse_obj_as from pydantic.networks import RedisDsn @@ -8,7 +8,7 @@ from .basic_types import PortInt -class RedisDatabase(int, Enum): +class RedisDatabase(IntEnum): RESOURCES = 0 LOCKS = 1 VALIDATION_CODES = 2