Set_price.py
Running the set_price.py in the python scripting zeroes out existing security data when the moneydance file is closed. Any ideas as to what is going wrong.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Sean Reilly on 02 Jan, 2019 11:15 AM
Hi Richard,
Ah yes, sorry about that. We moved a while ago to requiring a sync/save call for snapshots to prevent an overflow of history entries which were coming from calls to create snapshots which weren't meant to be saved. Anyway, you should just change any calls to
security.setSnapshotInt(dateint, price)
to invoke syncItem() on the result:security.setSnapshotInt(dateint, price).syncItem()
.I'll update the sample code now too.
Thanks!
Sean Reilly
Developer, The Infinite Kind
http://infinitekind.com
2 Posted by Richard on 03 Jan, 2019 02:29 AM
Thank you for the prompt response.
System closed this discussion on 04 Apr, 2019 02:30 AM.