Use less db.commits when adding quality and profiles.
This commit is contained in:
@@ -181,10 +181,10 @@ class ProfilePlugin(Plugin):
|
||||
)
|
||||
p.types.append(profile_type)
|
||||
|
||||
db.commit()
|
||||
quality_order += 1
|
||||
|
||||
order += 1
|
||||
|
||||
#db.close()
|
||||
db.commit()
|
||||
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user