Python SQLAlchemy PostgreSQL find by primary key Deprecate message
Python SQLAlchemy PostgreSQL find by primary key Deprecate message Question: I use below code to find the object by primary key. Now I am getting this Deprecated features detected message. How can I re-write this query to fix the deprecated message. Code: def find_by_id(self, obj_id): with self.session() as s: x = s.query(User).get(obj_id) return x Warning: …