From 6d72bba3fd085b175dd12e2056c9257a216ee27e Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Nov 05 2019 21:42:07 +0000 Subject: fix typo in table column name Fixes: https://pagure.io/koji/issue/1759 --- diff --git a/util/koji-sweep-db b/util/koji-sweep-db index 8a83df2..3c1a65b 100755 --- a/util/koji-sweep-db +++ b/util/koji-sweep-db @@ -20,7 +20,7 @@ def clean_sessions(cursor, vacuum): def clean_reservations(cursor, vacuum): - q = " FROM build_reservations WHERE create_time < now() - '1 day'::interval" + q = " FROM build_reservations WHERE created < now() - '1 day'::interval" if options.verbose: cursor.execute("SELECT COUNT(*) " + q) rows = cursor.fetchall()[0][0]