Use ORM for applicants
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
from .DbManager import DbManager
|
||||
import json
|
||||
import mariadb
|
||||
from PySide6.QtCore import QObject, Signal
|
||||
# from ..PyqcrmFlags import PyqcrmAppliEmpyFlags
|
||||
|
||||
from lib.domain.BaseModel import database
|
||||
|
||||
class ObjectDAO(QObject):
|
||||
newObjectAdded = Signal(bool, int)
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
#print(f"*** File: {__file__}, __init__()")
|
||||
self.__con = DbManager().getConnection()
|
||||
self.__con = database.connection()
|
||||
if self.__con:
|
||||
self.__cur = self.__con.cursor()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user