Closed
Description
Expected behaviour:
"now - transmission_date_done" can filter entries from transmission.
Actual behaviour:
"now - transmission_date_done" doesn't work
Steps to reproduce:
- torrents in transmission
- run cli flexget execute --tasks transmission_test, they are rejected.
but, if run cli flexget --test execute --tasks transmission_test, it says they would be accepted.
Config:
transmission_test:
<<: *from_transmission
accept_all: yes
if:
- now - transmission_date_done < timedelta(days=2): reject
transmission:
<<: *transmission_auth
action: pause
Log:
(click to expand)
paste log output here
Additional information:
- FlexGet version: 3.3.1
- Python version:
- Installation method: docker/wiserain
- Using daemon (yes/no): yes
- OS and version:
- Link to crash log:
Metadata
Metadata
Assignees
Labels
No labels
Activity
ProteinPig commentedon Feb 28, 2022
OK, I run another test
And I found every time every entry, time_now is 2022-02-27 04:07:00.955898
The real time is 2022-02-28 10:42 +8 here now.
gazpachoking commentedon Feb 28, 2022
I'm an idiot. 🤦♂️ Accidentally set the now variable when starting flexget and never updated it. Thanks for reporting.
[fix] jinja: Fix `now` actually updating to current time. fix Flexget…