explicitly close sessions

master
eric 2021-04-21 17:09:32 -04:00
parent 349e7a6c20
commit 0c95a0d7aa
1 changed files with 3 additions and 2 deletions

View File

@ -201,5 +201,6 @@ class AdvSearchPage(Page):
else:
os.entries = entries(resultpks, offset)
os.search_terms = selections
return self.formatter.render('advresults', os)
rendered = self.formatter.render('advresults', os)
session.close()
return rendered