]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix check scheduled workflows docstring
authorshamoon <4887959+shamoon@users.noreply.github.com>
Thu, 3 Jul 2025 07:11:12 +0000 (00:11 -0700)
committerGitHub <noreply@github.com>
Thu, 3 Jul 2025 07:11:12 +0000 (00:11 -0700)
src/documents/tasks.py

index 202e4fc823627e36a4faea2938bc6c1010f23c40..89db54497210f81f2351cbd8083f39a55b3744f5 100644 (file)
@@ -394,11 +394,9 @@ def check_scheduled_workflows():
     Check and run all enabled scheduled workflows.
 
     Scheduled triggers are evaluated based on a target date field (e.g. added, created, modified, or a custom date field),
-    combined with a day offset.
-
-    The offset is mathematically negated resulting in the following behavior:
-        - Positive offsets mean the workflow should trigger BEFORE the specified date (e.g., offset = +7 → trigger 7 days before)
-        - Negative offsets mean the workflow should trigger AFTER the specified date (e.g., offset = -7 → trigger 7 days after)
+    combined with a day offset:
+        - Positive offsets mean the workflow should trigger AFTER the specified date (e.g., offset = +7 → trigger 7 days after)
+        - Negative offsets mean the workflow should trigger BEFORE the specified date (e.g., offset = -7 → trigger 7 days before)
 
     Once a document satisfies this condition, and recurring/non-recurring constraints are met, the workflow is run.
     """