EMAIL_CONTROL issue #1557
-
|
Good morning,
which I assume means that account_curve_report tries to create an index on report_type and timestamp, but the EMAIL_CONTROL collection uses type and datetime (e.g., type: "last_email_sent", datetime: 202510032302342880). I think this mismatch prevents metadata storage, causing the blank email. Other reports (e.g., Slippage report) work, using type/datetime (per commits 2466dfa, 9674f6e). Manual runs generate the PDF, but automated runs fail to email it. I was going to try to create a MongoDB index on type and datetime to match the collection’s structure.
Does this seem correct? (sorry, I'm not terribly comfortable with this part of pysystemtrade) Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
First have a look to see what the current index is/are. Mine says: That first one is just the default one you get for the id, that gets created automatically I think. PST code tries to create a multikey one as well, the config is in Try deleting the second one if it exists. Then, the next time you access that collection, the multikey index will be re-created |
Beta Was this translation helpful? Give feedback.
First have a look to see what the current index is/are. Mine says:
That first one is just the default one you get for the id, that gets created automatically I think. PST code tries to create a multikey one as well, the config is in
mongo_email_control.pylines 17 to 24 ish.Try deleting the second one if it exists. Then, the next time you access that collection, the multikey index will be re-created