You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stating in the docs, added_date_object should be a python date.
But it seems that it does not return a date object, instead a datetime.
The match clause:
Stating in the docs, added_date_object should be a python date.
But it seems that it does not return a date object, instead a datetime.
The match clause:
match: "{{ added_date_object > date.today() - timedelta(days=2) }}"
results in the following error:
[2023-11-24 09:28:19,163] [WARNING] [paperless.consumer] TypeError: can't compare datetime.datetime to datetime.date
Unfortunately, we can't use datetime as it's not known:
match: "{{ added_date_object > datetime.now() - timedelta(days=2) }}"
gives:
[2023-11-24 09:30:31,962] [WARNING] [paperless.consumer] jinja2.exceptions.UndefinedError: 'datetime' is undefined
I'm not very talented in python, maybe i'm missing something?
Best regards
The text was updated successfully, but these errors were encountered: