python_bot/db_logic/collections.py
Simple_Not 505d90aea8
All checks were successful
continuous-integration/drone/push Build is passing
меньше кода - лучше!
2024-01-23 12:45:44 +10:00

18 lines
489 B
Python

from global_conf import CONFIG
#### https://docs.python-arango.com/en/main/
from arango import ArangoClient
def get_dicks_collection():
arango_client = ArangoClient(hosts=CONFIG['databaso']['host'] )
pipisa_db = arango_client.db(
CONFIG['databaso']['base'],
username=CONFIG['databaso']['user'],
password=CONFIG['databaso']['pass']
)
dicks_collection = pipisa_db.collection(CONFIG['databaso']['collection'])
return dicks_collection