adjust clock module
This commit is contained in:
@@ -82,5 +82,7 @@ class DatabaseUtils:
|
||||
|
||||
|
||||
def list_delete(self, list_name):
|
||||
models.List.delete().where(self.db.lists.name == self.current_name).execute()
|
||||
models.List.delete().where(self.db.lists.name == list_name).execute()
|
||||
|
||||
def sensor_log(self, **kwargs):
|
||||
models.SensorMetric(**kwargs).save()
|
||||
@@ -27,9 +27,9 @@ class Metric(DBModel):
|
||||
|
||||
class SensorMetric(Metric):
|
||||
# this is a continuous metric
|
||||
temperature = IntegerField()
|
||||
humidity = IntegerField()
|
||||
luminosity = IntegerField()
|
||||
temperature = FloatField()
|
||||
humidity = FloatField()
|
||||
luminosity = FloatField()
|
||||
|
||||
|
||||
class ChatMetric(Metric):
|
||||
|
||||
Reference in New Issue
Block a user