mirror of
https://github.com/fergalmoran/qrmaker.git
synced 2026-01-03 15:57:01 +00:00
Files added
This commit is contained in:
9
model/controller.py
Normal file
9
model/controller.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from pymongo import Connection
|
||||
import logging
|
||||
|
||||
class Controller:
|
||||
def __init__(self):
|
||||
self._cn = Connection()
|
||||
self.DB = self._cn.qrmaker
|
||||
logging.debug("Created database connection")
|
||||
|
||||
Reference in New Issue
Block a user