Use execute_query in do_action to allow integer fields to be empty.
This commit is contained in:
parent
87e0cdda9d
commit
ba14cc09b6
|
@ -283,7 +283,7 @@ def do_action(connection, action):
|
||||||
'new-category': q_new_category,
|
'new-category': q_new_category,
|
||||||
'edit-category': q_edit_category}
|
'edit-category': q_edit_category}
|
||||||
action_type = action['action']
|
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']:
|
if action_type in ['new-book', 'edit-book']:
|
||||||
print 'FIXING PERSONS: REMOVING'
|
print 'FIXING PERSONS: REMOVING'
|
||||||
c.execute(q_remove_bookpersons, {'isbn': action['isbn']})
|
c.execute(q_remove_bookpersons, {'isbn': action['isbn']})
|
||||||
|
|
Reference in New Issue