diff --git a/gui/models.py b/gui/models.py index d10f9d7e..89a7bc1c 100644 --- a/gui/models.py +++ b/gui/models.py @@ -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 @@ -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: diff --git a/gui/templates/base.html b/gui/templates/base.html index ece2966b..d9944ebf 100644 --- a/gui/templates/base.html +++ b/gui/templates/base.html @@ -28,7 +28,7 @@

My Lnd Overview

diff --git a/systemd.sh b/systemd.sh index 988f871f..a8fd6a9e 100644 --- a/systemd.sh +++ b/systemd.sh @@ -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 }