diff options
author | Donald Stufft <donald@stufft.io> | 2013-06-26 22:33:50 -0400 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2013-06-26 22:33:50 -0400 |
commit | 02197b38e0f854f88ec4a52ee3fe3ad5db471b99 (patch) | |
tree | 4ffa016b8024ca8ea08a3fae10c8401f40967186 | |
parent | 5760c53145af5986d91fe60762b85e7e15e9461c (diff) | |
download | decorator-02197b38e0f854f88ec4a52ee3fe3ad5db471b99.tar.gz |
Fix commiting and closing the db transaction
-rwxr-xr-x | tools/integrate-redis-stats.py | 4 |
1 files 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) |