We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with Actual(base_url=URL_ACTUAL, password=PASSWORD_ACTUAL, file=FILE_ACTUAL) as actual: actual.run_rules() actual.commit()
Traceback (most recent call last): File "/config/actual-pluggy-py/actual-pluggy.py", line 27, in <module> actual.run_rules() File "/config/actual-pluggy-py/.conda/lib/python3.11/site-packages/actual/__init__.py", line 414, in run_rules ruleset = get_ruleset(self.session) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/actual-pluggy-py/.conda/lib/python3.11/site-packages/actual/queries.py", line 604, in get_ruleset conditions = TypeAdapter(list[Condition]).validate_json(rule.conditions) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/actual-pluggy-py/.conda/lib/python3.11/site-packages/pydantic/type_adapter.py", line 144, in wrapped return func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/actual-pluggy-py/.conda/lib/python3.11/site-packages/pydantic/type_adapter.py", line 393, in validate_json return self.validator.validate_json(data, strict=strict, context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pydantic_core._pydantic_core.ValidationError: 1 validation error for list[function-after[check_operation_type(), function-after[convert_value(), Condition]]] 0.type Input should be 'date', 'id', 'string', 'number' or 'boolean' [type=enum, input_value='imported_payee', input_type=str] For further information visit https://errors.pydantic.dev/2.9/v/enum
Example of rule set that broke the code: "imported payee contains XXXXXX -> set payee to YYYYYY"
do not get "exit code"
The text was updated successfully, but these errors were encountered:
Closed as solved in #70, the type of condition was not implemented, I might have skipped due to thinking it was a deprecated function.
You can try it locally and let me know if it works. I wrote some tests and also did some local testing too, and everything seems to work.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Checks
Reproducible example
Log output
Issue description
Example of rule set that broke the code: "imported payee contains XXXXXX -> set payee to YYYYYY"
Expected behavior
do not get "exit code"
Installed versions
The text was updated successfully, but these errors were encountered: