Skip to content

Commit

Permalink
style: minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
MadeInPierre committed Sep 3, 2023
1 parent 98108d9 commit 57b2424
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion finalynx/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def run(self) -> None:
renders.append(self.render_mainframe())
else:
end_year = self.simulation.end_date.year if self.simulation.end_date else date.today().year + 100
console.log(f" [bold]Tip:[/] Use --future to display the final portfolio in {end_year}.\n")
console.log(f" [bold]Tip:[/] Use --future to display the final portfolio in {end_year}.\n")

# Display the entire portfolio and associated recommendations
for render in renders:
Expand Down
2 changes: 1 addition & 1 deletion finalynx/budget/_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def apply(s: str) -> bool:
return True

current = expenses[i_expense].period.value.capitalize() if expenses[i_expense].period != Period.UNKNOWN else None
return _set_field(expenses, i_expense, question, options, is_valid, apply, current)
return _set_field(expenses, i_expense, question, options, is_valid, apply, current, default="m")


def _comment(expenses: List[Expense], i_expense: int) -> Optional[bool]:
Expand Down
2 changes: 1 addition & 1 deletion finalynx/dashboard/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def _convert_rich_tree_to_nicegui(self, node: Node) -> Dict[str, Any]:

result = {
"label": node.render(output_format="[dashboard_tree]"),
"amount": node.get_amount(),
"amount": round(node.get_amount()),
"currency": node.get_currency(),
"name": node.name,
"hint": node.target.hint(),
Expand Down

0 comments on commit 57b2424

Please sign in to comment.