Revert changes

This commit is contained in:
mike cullerton 2021-05-26 10:46:43 -04:00
parent ec0fca0afe
commit fe6000f35c
1 changed files with 0 additions and 23 deletions

View File

@ -137,29 +137,6 @@ class InvestigatorSchema(ma.Schema):
fields = ("NETBADGEID", "INVESTIGATORTYPE", "INVESTIGATORTYPEFULL") fields = ("NETBADGEID", "INVESTIGATORTYPE", "INVESTIGATORTYPEFULL")
def get_all_required_documents():
all_required_documents = []
result = db.session.query(RequiredDocumentsList).all()
for doc in result:
all_required_documents.append(RequiredDocument(AUXDOCID=doc.AUXDOCID, AUXDOC=doc.AUXDOC))
return all_required_documents
class RequiredDocumentsList(db.Model):
AUXDOCID = db.Column(db.String(), nullable=False, primary_key=True)
AUXDOC = db.Column(db.String(), nullable=False, default="")
# @staticmethod
def all(self):
# return get_all_required_documents()
all_required_documents = []
result = self.query.all()
for doc in result:
all_required_documents.append(doc)
# all_required_documents.append(RequiredDocument(AUXDOCID=doc.AUXDOCID, AUXDOC=doc.AUXDOC))
return all_required_documents
class RequiredDocument(db.Model): class RequiredDocument(db.Model):
id = db.Column(db.Integer, primary_key=True) id = db.Column(db.Integer, primary_key=True)
AUXDOCID = db.Column(db.String(), nullable=False, default="") AUXDOCID = db.Column(db.String(), nullable=False, default="")