Commits

Donald Stufft committed 5c33a31

Fix commiting and closing the db transaction

Comments (0)

Files changed (1)

tools/integrate-redis-stats.py

     "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)