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']})