mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 09:52:30 -05:00
[V3 Setup] Overhaul backend conversion process through setup scripts (#2579)
* swap to click for setup * Initial changes * expose some stuff to allow for per-driver optimizations * overwrite base config * add red log * add one print juuuust in case * fix this * thanks kowlin * damn * oops * fix thing * partial commit * Working mongo -> json conversion, it sucks tho * remove unused line * Wrote initial optimized json importer * optimized json importer * remove useless line * update mongo to json converter * lets try writing the correct entry * oops * style fix * add some garbage data filters going from old mongo to json * ignore garbage data in mongov2 conversions * simplify code a bit and add a completion message * missed one * Update pipfile lock * Lock click version
This commit is contained in:
@@ -49,6 +49,10 @@ class Mongo(BaseDriver):
|
||||
if _conn is None:
|
||||
_initialize(**kwargs)
|
||||
|
||||
async def has_valid_connection(self) -> bool:
|
||||
# Maybe fix this?
|
||||
return True
|
||||
|
||||
@property
|
||||
def db(self) -> motor.core.Database:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user