Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
suejung-sentry committed Jan 30, 2025
1 parent f1eddb4 commit cfbad10
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks/sync_teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ def run_impl(self, db_session, ownerid, *, username=None, **kwargs):
),
)
for org_ownerid in removed_orgs:
org = db_session.query(Owner).filter(Owner.ownerid == org_ownerid).first()
org = (
db_session.query(Owner).filter(Owner.ownerid == org_ownerid).first()
)
if org and ownerid in org.plan_activated_users:
log.info(
"Removing user from org's plan_activated_users",
extra=dict(user_ownerid=ownerid, org_ownerid=org_ownerid)
extra=dict(user_ownerid=ownerid, org_ownerid=org_ownerid),
)
org.plan_activated_users.remove(ownerid)

Expand Down

0 comments on commit cfbad10

Please sign in to comment.