small updates
This commit is contained in:
1 parent
25632e1938
commit
965af7e4ee
5 files changed
+57
-16
No files matched your search
@@ -33,16 +33,16 @@ def configure_logging():
|
||||
)
|
||||
|
||||
|
||||
def setup_config(config_name: str) -> tuple[list[str], dict, AsyncIOMotorCollection]:
|
||||
def setup_config(monitor_name: str) -> tuple[list[str], dict, AsyncIOMotorCollection]:
|
||||
is_production = get_settings().development_mode == "PRODUCTION"
|
||||
config = get_config(
|
||||
config_name=config_name,
|
||||
config, _ = get_config(
|
||||
monitor_name=monitor_name,
|
||||
use_production_path=is_production,
|
||||
)
|
||||
|
||||
category_names = config["categories"]
|
||||
collection = get_collection(
|
||||
config_name if is_production else f"{config_name}_testing"
|
||||
monitor_name if is_production else f"{monitor_name}_testing"
|
||||
)
|
||||
return category_names, config, collection
|
||||
|
||||
|
||||
Reference in new issue
Block a user