some updates for sartography admin report w/ burnettk

This commit is contained in:
jasquat 2022-07-11 12:26:14 -04:00
parent 898b116394
commit cc912cd414
1 changed files with 8 additions and 1 deletions

View File

@ -83,10 +83,17 @@ class ProcessInstanceReportModel(SpiffworkflowBaseDBModel):
def add_fixtures(cls) -> None:
"""Add_fixtures."""
try:
db.session.query(ProcessInstanceReportModel).filter_by(process_group_identifier="sartography-admin", process_model_identifier="ticket").delete()
db.session.commit()
process_model = ProcessModelService().get_process_model(
group_id="sartography-admin", process_model_id="ticket"
)
json = {"order": "month asc"}
columns = [
{"Header": "id", "accessor": "id"},
{"Header": "month", "accessor": "month"},
{"Header": "milestone", "accessor": "milestone"},
]
json = {"order": "month asc", "columns": columns}
user = UserModel.query.first()
process_instance_report = cls(
identifier="for-month",