Skip to content

"now - transmission_date_done" doesn't work #3373

Closed
@ProteinPig

Description

@ProteinPig

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:

Activity

ProteinPig

ProteinPig commented on Feb 28, 2022

@ProteinPig
ContributorAuthor

OK, I run another test

  transmission_test:
    <<: *from_transmission
    set:
      time_now: '{{ now }}'
    accept_all: yes
    exec: echo '{{ time_now }}'

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

gazpachoking commented on Feb 28, 2022

@gazpachoking
Member

I'm an idiot. 🤦‍♂️ Accidentally set the now variable when starting flexget and never updated it. Thanks for reporting.

added a commit that references this issue on Jan 25, 2024
250b0a2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      "now - transmission_date_done" doesn't work · Issue #3373 · Flexget/Flexget