From 53e58586f33fd02e2b9aa697a5b0c99eef9b2308 Mon Sep 17 00:00:00 2001 From: cryptosharks131 <38626122+cryptosharks131@users.noreply.github.com> Date: Mon, 11 Jul 2022 11:10:01 -0400 Subject: [PATCH] v1.2.1 (#84) --- gui/models.py | 6 +++--- gui/templates/base.html | 2 +- systemd.sh | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) 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 @@