1. PyPA
  2. Python Packaging Authority Projects
  3. pypi

Commits

Donald Stufft  committed 5c33a31

Fix commiting and closing the db transaction

  • Participants
  • Parent commits 704c9ba
  • Branches default

Comments (0)

Files changed (1)

File tools/integrate-redis-stats.py

View file
  • Ignore whitespace
     "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)