Use less db.commits when adding quality and profiles.

This commit is contained in:
Ruud
2012-10-12 18:52:44 +02:00
parent 27635caa1d
commit f3e3632dd3
2 changed files with 24 additions and 21 deletions
+2 -2
View File
@@ -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