From b210280b6830e0adf1d3e4e5923d89ba819341f9 Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Mar 05 2020 14:28:34 +0000 Subject: fix table name Fixes: https://pagure.io/koji/issue/2055 --- diff --git a/util/koji-sweep-db b/util/koji-sweep-db index d324777..c4c72bb 100755 --- a/util/koji-sweep-db +++ b/util/koji-sweep-db @@ -36,8 +36,8 @@ def clean_reservations(cursor, vacuum, test, age): def clean_notification_tasks(cursor, vacuum, test, age): - q = " FROM task WHERE method = 'build' AND completion_time < NOW() - '%s days'::interval" % \ - int(age) + q = " FROM task WHERE method = 'tagNotification' AND" + \ + " completion_time < NOW() - '%s days'::interval" % int(age) if options.verbose: cursor.execute("SELECT COUNT(*) " + q) rows = cursor.fetchall()[0][0]