fix table name

Fixes: https://pagure.io/koji/issue/2055
This commit is contained in:
Tomas Kopecek 2020-03-03 14:03:04 +01:00
parent b0a748b21f
commit 02a630ec3a

View file

@ -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]