From 9d20d994a7ffbf980ce936391ffed480bc550110 Mon Sep 17 00:00:00 2001 From: Iuri de Silvio Date: Sat, 29 Mar 2014 10:29:40 -0300 Subject: [PATCH] Set plugin api=2 to make it work with older bottle versions. --- bottle_sqlite.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bottle_sqlite.py b/bottle_sqlite.py index d37ae28..434801c 100755 --- a/bottle_sqlite.py +++ b/bottle_sqlite.py @@ -50,6 +50,7 @@ class SQLitePlugin(object): settings on a per-route basis. ''' name = 'sqlite' + api = 2 def __init__(self, dbfile=':memory:', autocommit=True, dictrows=True, keyword='db'):