-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
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
default value for filter_training_data_by_account #30
Comments
Having recently picked up smart_importer, I can confirm that |
After reading the code for this, I think this parameter should just be called |
I think a default of using file_account probably makes sense. In my setup I have two different cases
|
…` or sometimes to be be more specific to `known_account`.
implemented in pull request #40 |
The changes made here aren't working well for the use case in #122. Suggestions welcome and appreciated on that ticket. Thank you in advance! |
The decorator could try to read
importer.file_account()
from the decorated importer instance and use this as default value forfilter_training_data_by_account
.This would allow the decorator to be used without any arguments (training data can be retrieved from the
existing_entries
argument to the importer's extract function). The lack of a default value for filter_training_data_by_account is currently preventing thetest_<...>_decoration_with_empty_arguments
unit tests from passing; the unit tests are therefore currently skipped:Also, to make the API easier to understand we could rename
filter_training_data_by_account
toknown_account
.The text was updated successfully, but these errors were encountered: