closeio / closeio-api

Python API Client for Close
http://developer.close.com/
MIT License
65 stars 47 forks source link

user reassign scripts doesn't appear to actually work #35

Closed anemitz closed 9 years ago

anemitz commented 9 years ago
(closeio-api)--- lib/closeio-api ‹master» ./scripts/user_reassign.py --to-user-id user_wWDo6ETmCC9mSL3YQt0wdierIIKfZnR0LShSiVxEXBF --from-user-id user_fLuLxKSVFjJTePCe660YI2f2b5JpwoBjWQaPqWUjm5V -k <redacted> --all-tasks --all-opportunities -c

Running the above command seems to modify the tasks and opportunities but if you run it again the see the same output / nothing actually changes.

anemitz commented 9 years ago

@congocongo

congocongo commented 9 years ago

change logger to debug, and run and send me debug log pls

congocongo commented 9 years ago

@anemitz

congocongo commented 9 years ago

i fixed small bug

first run:

./user_reassign.py -c -t user_H7Z0ZsoIhgZmI5kdDcFn1DSxc6R1B0M0sYhmaENJYMQ -f user_StJJQCTzSdTcxXpdAhELKDQEJwabvz0wtMwjuQmoNhA -k29d805d627aa41cc60ec3af7e54ed2f0873629fa33ec247b051cd5f7 --all-tasks --all-opportunities
[2015-03-03 20:50:30,972] INFO Starting new HTTPS connection (1): app.close.io
[2015-03-03 20:50:43,179] INFO from user_id user_StJJQCTzSdTcxXpdAhELKDQEJwabvz0wtMwjuQmoNhA (adeynichenko+2nd@gmail.com)
[2015-03-03 20:50:43,179] INFO to user_id: user_H7Z0ZsoIhgZmI5kdDcFn1DSxc6R1B0M0sYhmaENJYMQ (adeynichenko@gmail.com)
[2015-03-03 20:51:02,436] INFO updated task_NnoC2T8dCTyii6wEACmy9E30vQd3m9cSb9dg4uwvEw3
[2015-03-03 20:51:07,805] INFO updated oppo_Puufk92DmcCXKpY66ncTI2BJ8Lj8I2v8uPqY4oXBosL
[2015-03-03 20:51:07,805] INFO summary: updated tasks 1, updated opportunities 1

second run:

./user_reassign.py -c -t user_H7Z0ZsoIhgZmI5kdDcFn1DSxc6R1B0M0sYhmaENJYMQ -f user_StJJQCTzSdTcxXpdAhELKDQEJwabvz0wtMwjuQmoNhA -k29d805d627aa41cc60ec3af7e54ed2f0873629fa33ec247b051cd5f7 --all-tasks --all-opportunities
[2015-03-03 20:53:09,188] INFO Starting new HTTPS connection (1): app.close.io
[2015-03-03 20:53:11,379] INFO from user_id user_StJJQCTzSdTcxXpdAhELKDQEJwabvz0wtMwjuQmoNhA (adeynichenko+2nd@gmail.com)
[2015-03-03 20:53:11,379] INFO to user_id: user_H7Z0ZsoIhgZmI5kdDcFn1DSxc6R1B0M0sYhmaENJYMQ (adeynichenko@gmail.com)
[2015-03-03 20:53:13,233] INFO summary: updated tasks 0, updated opportunities 0