PR#1760: fix typo in table column name
Merges #1760 https://pagure.io/koji/pull-request/1760 Fixes: #1759 https://pagure.io/koji/issue/1759 koji-sweep-db using misnamed build_reservations column
This commit is contained in:
commit
f15ee7772c
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue