Skip to content

Commit

Permalink
Update routes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jawadqur authored Jan 26, 2024
1 parent ced5888 commit c0722ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/argowrapper/routes/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,13 @@ def get_workflows(

try:
if team_projects and len(team_projects) > 0:
logger.info("Doing team workflow get")
return argo_engine.get_workflows_for_team_projects_and_user(
team_projects=team_projects,
auth_header=request.headers.get("Authorization"),
)
else:
logger.info("Doing regular workflow get")
# no team_projects, so fall back to querying the workflows that belong just to the user (no team project):
return argo_engine.get_workflows_for_user(
request.headers.get("Authorization")
Expand Down

0 comments on commit c0722ff

Please sign in to comment.