Skip to content

Commit

Permalink
changed date field to datetime instead of string type
Browse files Browse the repository at this point in the history
  • Loading branch information
bradysalz committed Aug 4, 2018
1 parent 12d1365 commit 00e371f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def load_from_csv(self, data: List):
Args:
data: list form of a transaction csv row
"""
self.date = data[0]
self.date = datetime.strptime(data[0], "%m/%d/%Y")
self.vendor = data[1]
self.amount = data[3]
self.debit = data[4]
Expand Down

0 comments on commit 00e371f

Please sign in to comment.