Commit a1a5a444 authored by Yury's avatar Yury

document: fix sync_collection host passthrough

parent 3a09e46a
Pipeline #335 passed with stages
in 3 minutes and 59 seconds
......@@ -154,7 +154,7 @@ class MetaDocument(type):
client = cls.__dict__["client"]
database = cls.__dict__["database"]
collection = cls.__dict__["collection"]
return MongoClient(host=client.HOST, port=client.PORT)[database][collection]
return client.delegate[database][collection]
def __getattribute__(cls, item: str):
if item in ("database", "client"):
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment