Skip to content

Commit

Permalink
fix: date format wasn't getting set during bean-file
Browse files Browse the repository at this point in the history
  • Loading branch information
redstreet committed Jan 20, 2023
1 parent ca8de8d commit 924594d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beancount_reds_importers/libreader/csvreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ def initialize_reader(self, file):
# TODO: move out elsewhere?
# self.currency = self.ofx_account.statement.currency.upper()
self.currency = self.config.get('currency', 'USD')
self.date_format = '%m/%d/%Y' # TODO: move into class variable, into reader.Reader
self.file_read_done = False
# else:
# print("header_identifier failed---------------:")
# print(self.header_identifier, file.head())

def file_date(self, file):
"Get the maximum date from the file."
self.initialize(file) # self.date_format gets set via this
self.read_file(file)
return max(ot.date for ot in self.get_transactions()).date()

Expand Down

0 comments on commit 924594d

Please sign in to comment.