Projects/worblehat-old
Projects
/
worblehat-old
Archived
12
0
Fork 0

Use execute_query in do_action to allow integer fields to be empty.

This commit is contained in:
Øystein Ingmar Skartsæterhagen 2011-10-08 19:20:51 +00:00
parent 87e0cdda9d
commit ba14cc09b6
1 changed files with 1 additions and 1 deletions

View File

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