Skip to content

Commit

Permalink
misc improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Feb 4, 2025
1 parent 2ccb8bc commit 2cb7942
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/onyx/connectors/asana/asana_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,18 @@ def _get_tasks_for_project(
project = self.project_api.get_project(project_gid, opts={})
if project["archived"]:
logger.info(f"Skipping archived project: {project['name']} ({project_gid})")
return []
yield from []
if not project["team"] or not project["team"]["gid"]:
logger.info(
f"Skipping project without a team: {project['name']} ({project_gid})"
)
return []
yield from []
if project["privacy_setting"] == "private":
if self.team_gid and project["team"]["gid"] != self.team_gid:
logger.info(
f"Skipping private project not in configured team: {project['name']} ({project_gid})"
)
return []
yield from []
else:
logger.info(
f"Processing private project in configured team: {project['name']} ({project_gid})"
Expand Down

0 comments on commit 2cb7942

Please sign in to comment.