Merge branch 'dev'
All checks were successful
Build Docker / Build Image (push) Successful in 1m1s

This commit is contained in:
Nathan Woodburn 2024-02-13 10:01:21 +11:00
commit 16ac6c7d2b
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 9 additions and 1 deletions

View File

@ -17,12 +17,19 @@ If you have HSD runnning on a separate computer also add the IP here
Make sure HSD is running then run the following commands: Make sure HSD is running then run the following commands:
On Linux:
```bash ```bash
python3 server.py python3 server.py
# Or for more verbose output # Or for more verbose output
python3 main.py python3 main.py
``` ```
On Windows:
```bash
python main.py
```
Then access the wallet at http://localhost:5000 Then access the wallet at http://localhost:5000

View File

@ -134,7 +134,8 @@ def getBalance(account: str):
domains = getDomains(account) domains = getDomains(account)
domainValue = 0 domainValue = 0
for domain in domains: for domain in domains:
domainValue += domain['value'] if domain['state'] == "CLOSED":
domainValue += domain['value']
total = total - (domainValue/1000000) total = total - (domainValue/1000000)
# Only keep 2 decimal places # Only keep 2 decimal places