If this request connected to the database, close the connection.
(e=None)
| 21 | |
| 22 | |
| 23 | def close_db(e=None): |
| 24 | """If this request connected to the database, close the |
| 25 | connection. |
| 26 | """ |
| 27 | db = g.pop("db", None) |
| 28 | |
| 29 | if db is not None: |
| 30 | db.close() |
| 31 | |
| 32 | |
| 33 | def init_db(): |