also show skipped tasks in the simplified log w/ burnettk

This commit is contained in:
jasquat 2023-01-09 11:00:47 -05:00
parent fd0d411bc4
commit 3d3d5d3767
1 changed files with 6 additions and 1 deletions

View File

@ -181,7 +181,12 @@ def process_instance_log_list(
SpiffLoggingModel.process_instance_id == process_instance.id
)
if not detailed:
log_query = log_query.filter(SpiffLoggingModel.message.in_(["State change to COMPLETED"])) # type: ignore
log_query = log_query.filter(
or_(
SpiffLoggingModel.message.in_(["State change to COMPLETED"]), # type: ignore
SpiffLoggingModel.message.like("Skipped task %"), # type: ignore
)
)
logs = (
log_query.order_by(SpiffLoggingModel.timestamp.desc()) # type: ignore