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:
parent
26f30cacf5
commit
385bf3987e
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user