Skip to content

Instantly share code, notes, and snippets.

@cou929
Created May 6, 2011 12:35
Show Gist options
  • Save cou929/958881 to your computer and use it in GitHub Desktop.
Save cou929/958881 to your computer and use it in GitHub Desktop.
support task bulk upload
import sys
for line in sys.stdin:
tmp = line.strip().split(',')
print "insert into eip_t_todo (user_id, todo_name, category_id, priority, state, note, start_date, end_date, public_flag, addon_schedule_flg) values (10, {0}, 9, 3, 0, {1}, '2011-05-06', '9999-12-31', 'T', 'T');".format(tmp[0], tmp[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment