Removed the get_protocol method from study_service.

This commit is contained in:
mike cullerton 2021-05-13 16:29:34 -04:00
parent d189b84ba1
commit 9b24ad319b

View File

@ -343,16 +343,6 @@ class StudyService(object):
app.logger.info("Failed to connect to LDAP Server.")
return {}
@staticmethod
def get_protocol(study_id):
"""Returns the study protocol, if it has been uploaded."""
file = db.session.query(FileModel) \
.filter_by(study_id=study_id) \
.filter_by(form_field_key='Study_Protocol_Document') \
.first()
return FileModelSchema().dump(file)
@staticmethod
def synch_with_protocol_builder_if_enabled(user):
"""Assures that the studies we have locally for the given user are