diff options
author | sheerluck <sheer.luck.andrew@gmail.com> | 2017-09-07 11:52:29 +0300 |
---|---|---|
committer | sheerluck <sheer.luck.andrew@gmail.com> | 2017-09-07 11:52:29 +0300 |
commit | efc0fecaf238032a57637779993d2aa9257ac67f (patch) | |
tree | 76f44fcbcfd326afe44dfe3529d75cf0b7d5f55d | |
parent | 3b09891fc516e9d1f9fe578d7e06208dc688e378 (diff) | |
download | bottle-efc0fecaf238032a57637779993d2aa9257ac67f.tar.gz |
fixes sqlite3.ProgrammingError: Incorrect number of bindings supplied
-rw-r--r-- | docs/tutorial_app.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorial_app.rst b/docs/tutorial_app.rst index bb15abc..6f66a98 100644 --- a/docs/tutorial_app.rst +++ b/docs/tutorial_app.rst @@ -314,7 +314,7 @@ This tells Bottle to accept for ``<something>`` any string up to the next slash. else: conn = sqlite3.connect('todo.db') c = conn.cursor() - c.execute("SELECT task FROM todo WHERE id LIKE ?", (str(no))) + c.execute("SELECT task FROM todo WHERE id LIKE ?", (str(no),)) cur_data = c.fetchone() return template('edit_task', old=cur_data, no=no) |