From 66487086b5d9e64d67144efe7f34ebbe502f0dd8 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Fri, 18 Nov 2022 23:11:13 +0100 Subject: fix SQLAlchemy deprecation --- fietsboek/models/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fietsboek/models/user.py b/fietsboek/models/user.py index d4b5491..3a267d8 100644 --- a/fietsboek/models/user.py +++ b/fietsboek/models/user.py @@ -227,7 +227,7 @@ class User(Base): queries.append(select(Track).where(Track.visibility == Visibility.LOGGED_IN)) # Step 4: Friends' tracks if user: - friend_query = user._friend_query() + friend_query = user._friend_query().subquery() friend_ids = select(friend_query.c.id) queries.append( select(Track) -- cgit v1.2.3