Commit 9ee7867b72d41b0040d517d3441a0aa47415edb7

Authored by Alexis Koralewski
1 parent c8b1b1ed
Exists in dev

Fixing issue with saveWeather for agentM

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
src/core/pyros_django/common/models.py
... ... @@ -1954,6 +1954,7 @@ class SiteWatch(models.Model):
1954 1954 shutter = models.FloatField(blank=True, null=True)
1955 1955 pressure = models.FloatField(blank=True, null=True)
1956 1956 humidity = models.FloatField(blank=True, null=True)
  1957 + power_input = models.IntegerField(blank=True, null=True)
1957 1958  
1958 1959 class Meta:
1959 1960 managed = True
... ... @@ -1990,7 +1991,7 @@ class SiteWatch(models.Model):
1990 1991 elif key == "Roof_state":
1991 1992 self.dome = value
1992 1993 elif key == "Power_input":
1993   - self.power_input
  1994 + self.power_input = value
1994 1995 else:
1995 1996 return 1
1996 1997 return 0
... ...