Skip to content

Commit

Permalink
Use long-term debt instead of general debt (#74). (#75)
Browse files Browse the repository at this point in the history
* Use long-term debt instead of general debt (#74).

* Update the HTML label for long term debt.
  • Loading branch information
kocielnik authored May 15, 2024
1 parent 85a7108 commit 1daffb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Active/MSNMoney.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def parse_annual_report_data(self, content):
most_recent_statement = annual_statements[max(annual_statements.keys())]
if not most_recent_statement:
return
self.total_debt = str(float(most_recent_statement.get('liabilities', 0)) * 1000000)
self.total_debt = str(float(most_recent_statement.get('longTermDebt', 0)))
self.shares_outstanding = float(most_recent_statement.get('sharesOutstanding', 0))

key_metrics = data.get('analysis', {}).get('keyMetrics', {})
Expand Down
2 changes: 1 addition & 1 deletion templates/management.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<table class="table table-bordered text-center">
<thead class="thead-light">
<tr id="debt_title_labels">
<th>Total debt</th>
<th>Long term debt</th>
<th>Free cash flow</th>
<th>Years to pay off debt</th>
</tr>
Expand Down

0 comments on commit 1daffb9

Please sign in to comment.