From 02197b38e0f854f88ec4a52ee3fe3ad5db471b99 Mon Sep 17 00:00:00 2001 From: Donald Stufft Date: Wed, 26 Jun 2013 22:33:50 -0400 Subject: Fix commiting and closing the db transaction --- tools/integrate-redis-stats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/integrate-redis-stats.py b/tools/integrate-redis-stats.py index dcc103d..771b8a2 100755 --- a/tools/integrate-redis-stats.py +++ b/tools/integrate-redis-stats.py @@ -55,8 +55,8 @@ cursor.executemany( "UPDATE release_files SET downloads = downloads + %s WHERE filename = %s", downloads, ) -cursor.commit() -cursor.close() +store.commit() +store.close() # Add this to our integrated set redis.sadd("downloads:integrated", search) -- cgit v1.2.1