sync moved to modules

This commit is contained in:
tmshv committed 2020-02-23 21:25:17 +03:00
1 parent 1dda6ce8cc
commit 13b761a81e
50 files changed

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
from pymongo import MongoClient
import settings
def db():
client = MongoClient(settings.database_uri)
return client.hudozka
def collection(name):
return db()[name]