Files @ fa35a70f9fe1
Branch filter:

Location: NPO-Accounting/import2ledger/import2ledger/hooks/filter_by_date.py

Brett Smith
CODE: Update main loop to reflect the template change in 34b71ba.
class FilterByDateHook:
    def __init__(self, config):
        self.config = config

    def run(self, entry_data):
        try:
            date = entry_data['date']
        except KeyError:
            pass
        else:
            if not self.config.date_in_want_range(date):
                entry_data['_hook_cancel'] = True