Skip to content

Commit

Permalink
Resolved bug opening portfolio
Browse files Browse the repository at this point in the history
  • Loading branch information
ilcardella committed Feb 10, 2019
1 parent 653aa6d commit fc6fc55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Model/DatabaseHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def read_data(self, filepath=None):
json_obj = Utils.load_json_file(path)

# Create a list of all the trades in the json file
self.trading_history.clear()
for item in json_obj['trades']:
trade = Trade.from_dict(item)
# Store the list internally
Expand Down

0 comments on commit fc6fc55

Please sign in to comment.