CODE: Update for db59d2fc8c.

This commit is contained in:
Brett Smith 2018-01-26 15:35:07 -05:00
parent eff9bdf856
commit ba871ffe34

View file

@ -77,7 +77,6 @@ At a high level, import2ledger handles each input file this way::
usable_importers = importers where can_handle(input_file) returns true usable_importers = importers where can_handle(input_file) returns true
for importer_class in usable_importers: for importer_class in usable_importers:
template = built from importer_class.TEMPLATE_KEY
input_file.seek(0) input_file.seek(0)
for entry_data in importer_class(input_file): for entry_data in importer_class(input_file):
for hook in all_hooks: for hook in all_hooks:
@ -86,9 +85,6 @@ At a high level, import2ledger handles each input file this way::
break break
elif hook_return is not None: elif hook_return is not None:
entry_data = hook_return entry_data = hook_return
else:
if entry_data:
template.render(entry_data)
Note in particular that multiple importers can handle the same input file. This helps support inputs like Patreon's earnings CSV, where completely different transactions are generated from the same source. Note in particular that multiple importers can handle the same input file. This helps support inputs like Patreon's earnings CSV, where completely different transactions are generated from the same source.