Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptosharks131 authored Jul 11, 2022
1 parent 1baebbd commit 53e5858
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gui/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ def save(self, *args, **kwargs):
else:
LocalSettings(key='AR-Outbound%', value='75').save()
outbound_setting = 75
self.ar_out_target = int(outbound_setting)
self.ar_out_target = outbound_setting
if not self.ar_amt_target:
if LocalSettings.objects.filter(key='AR-Target%').exists():
amt_setting = int(LocalSettings.objects.filter(key='AR-Target%')[0].value)
amt_setting = float(LocalSettings.objects.filter(key='AR-Target%')[0].value)
else:
LocalSettings(key='AR-Target%', value='5').save()
amt_setting = 5
Expand All @@ -122,7 +122,7 @@ def save(self, *args, **kwargs):
else:
LocalSettings(key='AR-MaxCost%', value='65').save()
cost_setting = 65
self.ar_max_cost = int(cost_setting)
self.ar_max_cost = cost_setting
super(Channels, self).save(*args, **kwargs)

class Meta:
Expand Down
2 changes: 1 addition & 1 deletion gui/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1><a href="/">My Lnd Overview</a></h1>
<footer>
<div id="footer">
<div class="w3-container w3-padding-small">
<center>LNDg v1.2.0</center>
<center>LNDg v1.2.1</center>
</div>
</div>
</footer>
Expand Down
4 changes: 4 additions & 0 deletions systemd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ User=$INSTALL_USER
Group=$INSTALL_USER
ExecStart=/usr/bin/bash $HOME_DIR/lndg/htlc_stream.sh
StandardError=append:/var/log/lnd_htlc_stream_error.log
Restart=on-failure
RestartSec=60s
[Install]
WantedBy=multi-user.target
EOF
}

Expand Down

0 comments on commit 53e5858

Please sign in to comment.