mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-26 15:06:36 +00:00
Configure isolation_level from transaction_mode
TypeError: 'transaction_mode' is an invalid keyword argument for Connection()
This commit is contained in:
parent
0ab0605d22
commit
467ec947ff
@ -26,3 +26,8 @@ class DatabaseWrapper(base.DatabaseWrapper):
|
|||||||
cursor.execute(init_cmd.strip())
|
cursor.execute(init_cmd.strip())
|
||||||
|
|
||||||
|
|
||||||
|
def get_new_connection(self, conn_params):
|
||||||
|
conn_params["isolation_level"] = conn_params.pop("transaction_mode", "DEFERRED")
|
||||||
|
super().get_new_connection(conn_params)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user