mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-21 12:18:08 +00:00
Minor fixes
This commit is contained in:
parent
853b2b2502
commit
f0678b43d4
@ -166,7 +166,9 @@ def get_study_workflows(study_id):
|
||||
|
||||
# Get study status spec
|
||||
status_spec: WorkflowSpecModel = session.query(WorkflowSpecModel)\
|
||||
.filter_by(is_status=True).first()
|
||||
.filter_by(is_status=True)\
|
||||
.filter_by(id=study.status_spec_id)\
|
||||
.first()
|
||||
|
||||
status_data = None
|
||||
|
||||
|
@ -19,7 +19,6 @@ def all_specifications():
|
||||
@auth.login_required
|
||||
def add_workflow_specification(body):
|
||||
new_spec: WorkflowSpecModel = WorkflowSpecModelSchema().load(body, session=session)
|
||||
new_spec.is_status = new_spec.id == 'status'
|
||||
session.add(new_spec)
|
||||
session.commit()
|
||||
return WorkflowSpecModelSchema().dump(new_spec)
|
||||
|
@ -5,6 +5,7 @@ from marshmallow_sqlalchemy import SQLAlchemyAutoSchema
|
||||
|
||||
from crc import db
|
||||
|
||||
|
||||
class WorkflowSpecCategoryModel(db.Model):
|
||||
__tablename__ = 'workflow_spec_category'
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user