mirror of
https://github.com/sartography/protocol-builder-mock.git
synced 2025-01-12 00:34:44 +00:00
Revert changes
This commit is contained in:
parent
ec0fca0afe
commit
fe6000f35c
23
pb/models.py
23
pb/models.py
@ -137,29 +137,6 @@ class InvestigatorSchema(ma.Schema):
|
||||
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):
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
AUXDOCID = db.Column(db.String(), nullable=False, default="")
|
||||
|
Loading…
x
Reference in New Issue
Block a user