Add example flows to user flows
This commit is contained in:
parent
971b0ca366
commit
8695d90583
1 changed files with 2 additions and 1 deletions
|
|
@ -62,6 +62,7 @@ def read_flows(
|
|||
flows = current_user.flows
|
||||
|
||||
flows = validate_is_component(flows)
|
||||
flow_ids = [flow.id for flow in flows]
|
||||
# with the session get the flows that DO NOT have a user_id
|
||||
try:
|
||||
example_flows = session.exec(
|
||||
|
|
@ -70,7 +71,7 @@ def read_flows(
|
|||
)
|
||||
).all() # noqa
|
||||
for example_flow in example_flows:
|
||||
if example_flow not in flows:
|
||||
if example_flow.id not in flow_ids:
|
||||
flows.append(example_flow)
|
||||
except Exception as e:
|
||||
logger.error(e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue