mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Setup] Fix the mongo name to create instances using new driver (#2594)
* oops * damn you
This commit is contained in:
parent
874204bf18
commit
95d5ec5f0e
@ -161,10 +161,11 @@ def basic_setup():
|
||||
|
||||
storage = get_storage_type()
|
||||
|
||||
storage_dict = {1: "JSON", 2: "MongoDB"}
|
||||
default_dirs["STORAGE_TYPE"] = storage_dict.get(storage, 1)
|
||||
storage_dict = {1: BackendType.JSON, 2: BackendType.MONGO}
|
||||
storage_type: BackendType = storage_dict.get(storage, BackendType.JSON)
|
||||
default_dirs["STORAGE_TYPE"] = storage_type.value
|
||||
|
||||
if storage_dict.get(storage, 1) == "MongoDB":
|
||||
if storage_type == BackendType.MONGO:
|
||||
from redbot.core.drivers.red_mongo import get_config_details
|
||||
|
||||
default_dirs["STORAGE_DETAILS"] = get_config_details()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user