Close all
This commit is contained in:
1 parent
00b613d2e0
commit
aab10fb599
16 files changed
+210
-170
No files matched your search
@@ -71,6 +71,7 @@ class ProfilePlugin(Plugin):
|
||||
for profile in profiles:
|
||||
temp.append(profile.to_dict(self.to_dict))
|
||||
|
||||
db.close()
|
||||
return temp
|
||||
|
||||
def save(self, **kwargs):
|
||||
@@ -127,6 +128,7 @@ class ProfilePlugin(Plugin):
|
||||
.options(joinedload_all('types')) \
|
||||
.first()
|
||||
default_dict = default.to_dict(self.to_dict)
|
||||
db.close()
|
||||
|
||||
return default_dict
|
||||
|
||||
|
||||
Reference in new issue
Block a user