explicitly close sessions
parent
349e7a6c20
commit
0c95a0d7aa
|
@ -201,5 +201,6 @@ class AdvSearchPage(Page):
|
||||||
else:
|
else:
|
||||||
os.entries = entries(resultpks, offset)
|
os.entries = entries(resultpks, offset)
|
||||||
os.search_terms = selections
|
os.search_terms = selections
|
||||||
return self.formatter.render('advresults', os)
|
rendered = self.formatter.render('advresults', os)
|
||||||
|
session.close()
|
||||||
|
return rendered
|
||||||
|
|
Loading…
Reference in New Issue