Skip to content

Commit

Permalink
feat(space): add value property
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenepix38 committed Sep 9, 2023
1 parent 48bcd96 commit 89fda45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions django_napse/core/models/accounts/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ def info(self, verbose=True, beacon=""):
@property
def testing(self):
return self.exchange_account.testing

@property
def value(self) -> float:
connections = self.wallet.connections.all()
return sum([connection.wallet.value_market() for connection in connections])

0 comments on commit 89fda45

Please sign in to comment.