Commit 54e685c9 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Rename var

parent 5f25a8b8
......@@ -155,7 +155,7 @@ def cleanup():
raise e
cur.execute("select user_index,login from users where expires_at < now();")
expired_accounts = cur.rowcount
nb_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)))
......@@ -190,7 +190,7 @@ def cleanup():
""", (old_users,))
conn.close()"Deleted %d/%d expired accounts")%(len(old_users_entries), expired_accounts)"Deleted %d over %d expired accounts")%(len(old_users_entries), nb_expired_accounts)
return Response("Deleted %d expired accounts."%(len(old_users_entries)), status=200)
@application.route("/", methods=['POST'])
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