mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-06 03:18:01 -05:00
db locking issues fix #2
This commit is contained in:
parent
26f30cacf5
commit
385bf3987e
@ -124,8 +124,8 @@ class DBConnection:
|
||||
attempt = 0
|
||||
|
||||
# Transaction
|
||||
self.connection.isolation_level = 'EXCLUSIVE'
|
||||
self.connection.execute('BEGIN EXCLUSIVE')
|
||||
self.connection.isolation_level = None
|
||||
self.connection.execute('BEGIN')
|
||||
|
||||
while attempt < 5:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user