From e62fbce821b9323562a186f86e649ed2ade07656 Mon Sep 17 00:00:00 2001 From: Kanstantsin Kamkou Date: Tue, 18 Jan 2022 15:18:59 +0100 Subject: [PATCH] sqlalchemy migration issue --- gitmostwanted/blueprints/repo_trending.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitmostwanted/blueprints/repo_trending.py b/gitmostwanted/blueprints/repo_trending.py index 78e1678..c4dc49e 100644 --- a/gitmostwanted/blueprints/repo_trending.py +++ b/gitmostwanted/blueprints/repo_trending.py @@ -22,6 +22,6 @@ def list_by_range(rng): query = query.add_columns(db.null()) else: query = UserAttitude.join_by_user_and_repo(query, g.user.id, Repo.id)\ - .add_columns(UserAttitude.attitude) + .with_entities(model, UserAttitude.attitude) return render_template('index.html', entries=query, languages=Repo.language_distinct(), rng=rng)