diff options
author | Daniel Schadt <kingdread@gmx.de> | 2022-11-18 23:11:13 +0100 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2022-11-18 23:11:13 +0100 |
commit | 66487086b5d9e64d67144efe7f34ebbe502f0dd8 (patch) | |
tree | a4e21e1ae9212696d6f07aefe3f5406d0eaf6982 | |
parent | 3eb21aaf91e9201c54f0cfe5b16b99f5975bf698 (diff) | |
download | fietsboek-66487086b5d9e64d67144efe7f34ebbe502f0dd8.tar.gz fietsboek-66487086b5d9e64d67144efe7f34ebbe502f0dd8.tar.bz2 fietsboek-66487086b5d9e64d67144efe7f34ebbe502f0dd8.zip |
fix SQLAlchemy deprecation
-rw-r--r-- | fietsboek/models/user.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |