mirror of
https://github.com/postgres/pgweb.git
synced 2025-07-29 11:59:36 +00:00
Close db connection in docloader
To make Stefan happy...
This commit is contained in:
@ -115,6 +115,7 @@ if ver == "0":
|
|||||||
curs.execute("SELECT varnish_purge('^/docs/' || %(v)s || '/')", {'v': ver})
|
curs.execute("SELECT varnish_purge('^/docs/' || %(v)s || '/')", {'v': ver})
|
||||||
|
|
||||||
transaction.commit_unless_managed()
|
transaction.commit_unless_managed()
|
||||||
|
connection.close()
|
||||||
|
|
||||||
if not quiet: print "Done (%i pages)." % pagecount
|
if not quiet: print "Done (%i pages)." % pagecount
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user