Browse files

Trying to fit into 80 columns

  • Loading branch information...
1 parent 80a2d51 commit 2f5ded368136948ca2ab9fb028fe16d2832bbf92 @kedder committed Mar 31, 2012
Showing with 8 additions and 7 deletions.
  1. +8 −7 src/ofxstatement/plugins/dnb.py
View
15 src/ofxstatement/plugins/dnb.py
@@ -42,12 +42,13 @@ def parse_record(self, line):
# print(line)
lineType = line[0]
+ stmt = self.statement
if lineType == LINETIME_HEADER:
# Get basic account information
- self.statement.currency = line[17]
- self.statement.bankId = line[3]
- self.statement.accountId = line[16]
+ stmt.currency = line[17]
+ stmt.bankId = line[3]
+ stmt.accountId = line[16]
return None
elif lineType == LINETYPE_TRANSACTION:
@@ -60,11 +61,11 @@ def parse_record(self, line):
elif lineType == LINETYPE_SUMMARY:
summaryType = line[1]
if summaryType == SUMMARY_START:
- self.statement.startingBalance = self.parse_float(line[4])
- self.statement.startingBalanceDate = self.parse_datetime(line[2])
+ stmt.startingBalance = self.parse_float(line[4])
+ stmt.startingBalanceDate = self.parse_datetime(line[2])
elif summaryType == SUMMARY_END:
- self.statement.endingBalance = self.parse_float(line[4])
- self.statement.endingBalanceDate = self.parse_datetime(line[2])
+ stmt.endingBalance = self.parse_float(line[4])
+ stmt.endingBalanceDate = self.parse_datetime(line[2])
return None
class DnBPlugin(Plugin):

0 comments on commit 2f5ded3

Please sign in to comment.