edge-sky / Bills-save

基于 Notion API + Python 实现支付宝与微信账单聚合
Mozilla Public License 2.0
17 stars 2 forks source link

重复执行问题 #10

Open bdingtech opened 3 hours ago

bdingtech commented 3 hours ago

https://github.com/edge-sky/Bills-save/blob/c406c43d541a5085d8b55f1951c550991336875b/mail.py#L317

如果一份账单邮件在三分钟内已经处理完毕,那么这封邮件似乎又会被当做新邮件重新执行

edge-sky commented 3 hours ago

如果程序一直运行应该不会应该不会有这个问题,是不是完成一次同步后马上重启程序进行下次同步?

---原始邮件--- 发件人: @.> 发送时间: 2024年10月24日(周四) 下午2:14 收件人: @.>; 抄送: @.***>; 主题: [edge-sky/Bills-save] 重复执行问题 (Issue #10)

https://github.com/edge-sky/Bills-save/blob/c406c43d541a5085d8b55f1951c550991336875b/mail.py#L317

如果一份账单邮件在三分钟内已经处理完毕,那么这封邮件似乎又会被当做新邮件重新执行

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

bdingtech commented 3 hours ago

CleanShot 2024-10-24 at 14 25 14@2x 没有重启程序。当同步完成之后,会继续获取原来的账单密码,再走一遍流程。

bdingtech commented 48 minutes ago

delete_after_used: True 删掉邮件就正常了,就这样凑合着用吧😂