From ba14cc09b63d3e0c5be071127bb6c1c753a65c4c Mon Sep 17 00:00:00 2001 From: oysteini Date: Sat, 8 Oct 2011 19:20:51 +0000 Subject: [PATCH] Use execute_query in do_action to allow integer fields to be empty. --- cli/worblehat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/worblehat.py b/cli/worblehat.py index 6ff271a..6d58a74 100755 --- a/cli/worblehat.py +++ b/cli/worblehat.py @@ -283,7 +283,7 @@ def do_action(connection, action): 'new-category': q_new_category, 'edit-category': q_edit_category} action_type = action['action'] - c.execute(queries[action_type], action) + execute_query(c, queries[action_type], action) if action_type in ['new-book', 'edit-book']: print 'FIXING PERSONS: REMOVING' c.execute(q_remove_bookpersons, {'isbn': action['isbn']})