From 9af3773079ea63c0b3fc20af3ca81da89a567418 Mon Sep 17 00:00:00 2001 From: burnettk Date: Fri, 25 Nov 2022 02:55:52 -0500 Subject: [PATCH] lint --- src/spiffworkflow_backend/routes/process_api_blueprint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/spiffworkflow_backend/routes/process_api_blueprint.py b/src/spiffworkflow_backend/routes/process_api_blueprint.py index 37524a5a..f079b6eb 100644 --- a/src/spiffworkflow_backend/routes/process_api_blueprint.py +++ b/src/spiffworkflow_backend/routes/process_api_blueprint.py @@ -868,7 +868,8 @@ def process_instance_list( process_instance_query = process_instance_query.filter( ProcessInstanceModel.status.in_(["complete", "error", "terminated"]) # type: ignore ) - # process_instance_query = process_instance_query.join(UserModel, UserModel.id == ProcessInstanceModel.process_initiator_id).add_columns(UserModel.username) + # process_instance_query = process_instance_query.join(UserModel, UserModel.id == ProcessInstanceModel.process_initiator_id) + # process_instance_query = process_instance_query.add_columns(UserModel.username) # search for process_instance.UserModel.username in this file for more details about why adding columns is annoying. process_instance_query = process_instance_query.filter( ProcessInstanceModel.process_initiator_id != g.user.id