sync moved to modules
This commit is contained in:
1 parent
1dda6ce8cc
commit
13b761a81e
50 files changed
No files matched your search
@@ -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]
|
||||
Reference in new issue
Block a user