From 4364ce5d6fcc1b4144199a62a3e0fe65f46fdb46 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 30 Jan 2021 23:51:09 +0000 Subject: [PATCH] Fix incorrect query in check_update_config task --- app/tasks/importtasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py index 7948cce..0df3348 100644 --- a/app/tasks/importtasks.py +++ b/app/tasks/importtasks.py @@ -339,7 +339,7 @@ def check_update_config_impl(package): db.session.commit() return - if package.releases.any(commit_hash=commit): + if package.releases.filter_by(commit_hash=commit).count() > 0: return if config.make_release: