1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-15 13:55:05 -05:00

db locking issues fix #2

This commit is contained in:
echel0n 2014-06-05 12:59:17 -07:00
parent 26f30cacf5
commit 385bf3987e

View File

@ -124,8 +124,8 @@ class DBConnection:
attempt = 0 attempt = 0
# Transaction # Transaction
self.connection.isolation_level = 'EXCLUSIVE' self.connection.isolation_level = None
self.connection.execute('BEGIN EXCLUSIVE') self.connection.execute('BEGIN')
while attempt < 5: while attempt < 5:
try: try: