uranusjr commented on code in PR #32645:
URL: https://github.com/apache/airflow/pull/32645#discussion_r1266199133


##########
airflow/models/trigger.py:
##########
@@ -195,7 +206,7 @@ def submit_failure(cls, trigger_id, exc=None, session: 
Session = NEW_SESSION) ->
     @provide_session
     def ids_for_triggerer(cls, triggerer_id, session: Session = NEW_SESSION) 
-> list[int]:
         """Retrieves a list of triggerer_ids."""
-        return [row[0] for row in 
session.query(cls.id).filter(cls.triggerer_id == triggerer_id)]
+        return [row[0] for row in 
session.execute(select(cls.id).where(cls.triggerer_id == triggerer_id))]

Review Comment:
   ```suggestion
           return session.scalars(select(cls.id).where(cls.triggerer_id == 
triggerer_id)).all()
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to