fix the info result
This commit is contained in:
parent
9590cff193
commit
1a8dc80067
|
@ -36,11 +36,8 @@ class SnapshotsLog(Thing):
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
def get_status(self):
|
def get_status(self):
|
||||||
if self.severity:
|
|
||||||
return Severity(self.severity)
|
return Severity(self.severity)
|
||||||
|
|
||||||
return ''
|
|
||||||
|
|
||||||
def get_device(self):
|
def get_device(self):
|
||||||
if self.snapshot:
|
if self.snapshot:
|
||||||
return self.snapshot.device.devicehub_id
|
return self.snapshot.device.devicehub_id
|
||||||
|
|
Reference in New Issue