From ba871ffe34c3d3d87b930d6ec74089dffb3eb52d Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Fri, 26 Jan 2018 15:35:07 -0500 Subject: [PATCH] CODE: Update for db59d2fc8c. --- CODE.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CODE.rst b/CODE.rst index 2f092d5..177bfa1 100644 --- a/CODE.rst +++ b/CODE.rst @@ -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.