summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-06-26 22:33:50 -0400
committerDonald Stufft <donald@stufft.io>2013-06-26 22:33:50 -0400
commit02197b38e0f854f88ec4a52ee3fe3ad5db471b99 (patch)
tree4ffa016b8024ca8ea08a3fae10c8401f40967186
parent5760c53145af5986d91fe60762b85e7e15e9461c (diff)
downloaddecorator-02197b38e0f854f88ec4a52ee3fe3ad5db471b99.tar.gz
Fix commiting and closing the db transaction
-rwxr-xr-xtools/integrate-redis-stats.py4
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)