From 399982e5b7ab0b14973251147e7f6416515366dd Mon Sep 17 00:00:00 2001 From: shahzeydyfah Date: Thu, 15 Feb 2024 20:20:44 +0330 Subject: [PATCH] add reuirements --- auth/utils/mongo.py | 1 - core/config.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/auth/utils/mongo.py b/auth/utils/mongo.py index ad5003f..334b168 100644 --- a/auth/utils/mongo.py +++ b/auth/utils/mongo.py @@ -10,5 +10,4 @@ def get_auth_db(): def use_auth_collection(collection: str) -> Collection: - print("pppppppppppppppppppp") return use_collection(collection, get_auth_db(), connection_name='mongo_auth') diff --git a/core/config.py b/core/config.py index b83b83b..f157505 100644 --- a/core/config.py +++ b/core/config.py @@ -114,8 +114,8 @@ class CoreConfig(BaseModel): server: Optional[ServerConfig] auth: Optional[AuthConfig] dependency: Optional[DependencyConfig] - database: dict - static_files: dict = dict() + database: dict[str, Union[DatabaseConfig, DatabaseModeConfig]] + static_files: dict[str, str] = dict() celery: Optional[CeleryTask] class Config: