Changeset - ba871ffe34c3
[Not reviewed]
0 1 0
Brett Smith - 6 years ago 2018-01-26 20:35:07
brettcsmith@brettcsmith.org
CODE: Update for db59d2fc8c.
1 file changed with 0 insertions and 4 deletions:
0 comments (0 inline, 0 general)
CODE.rst
Show inline comments
...
 
@@ -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
 
  for importer_class in usable_importers:
 
    template = built from importer_class.TEMPLATE_KEY
 
    input_file.seek(0)
 
    for entry_data in importer_class(input_file):
 
      for hook in all_hooks:
...
 
@@ -86,9 +85,6 @@ At a high level, import2ledger handles each input file this way::
 
          break
 
        elif hook_return is not None:
 
          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.
 

	
0 comments (0 inline, 0 general)