Commit 5f25a8b8 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

rowcount is an INT

parent 3d1db573
......@@ -155,7 +155,7 @@ def cleanup():
raise e
cur.execute("select user_index,login from users where expires_at < now();")
expired_accounts = cur.rowcount()
expired_accounts = cur.rowcount
old_users_entries = cur.fetchall()[:1000]
old_users = ','.join( str(u[0]) for u in old_users_entries )
logging.debug("%d users to delete"%(len(old_users_entries)))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment