diff --git a/store/app/api/crud/base.py b/store/app/api/crud/base.py index 2d141881..35b8fe29 100644 --- a/store/app/api/crud/base.py +++ b/store/app/api/crud/base.py @@ -8,6 +8,7 @@ from botocore.exceptions import ClientError from redis import Redis from types_aiobotocore_dynamodb.service_resource import DynamoDBServiceResource + from store.settings import settings from store.settings import settings diff --git a/store/app/api/model.py b/store/app/api/model.py index 72f4970b..b6bcc148 100644 --- a/store/app/api/model.py +++ b/store/app/api/model.py @@ -24,7 +24,6 @@ def from_uuid(cls, user_id: uuid.UUID, email: str) -> "User": def to_uuid(self) -> uuid.UUID: return uuid.UUID(self.user_id) - class ApiKey(BaseModel): """Stored in Redis rather than DynamoDB.""" diff --git a/store/settings/environment.py b/store/settings/environment.py index 07cd7a8a..c0ca99e5 100644 --- a/store/settings/environment.py +++ b/store/settings/environment.py @@ -4,6 +4,7 @@ from omegaconf import II, MISSING + @dataclass class RedisSettings: host: str = field(default=MISSING) @@ -11,6 +12,7 @@ class RedisSettings: port: int = field(default=6379) db: int = field(default=0) + @dataclass class RedisSettings: host: str = field(default=MISSING)