fix the info result

This commit is contained in:
Cayo Puigdefabregas 2022-05-20 13:52:32 +02:00
parent 9590cff193
commit 1a8dc80067
1 changed files with 1 additions and 4 deletions

View File

@ -36,11 +36,8 @@ class SnapshotsLog(Thing):
db.session.commit()
def get_status(self):
if self.severity:
return Severity(self.severity)
return ''
def get_device(self):
if self.snapshot:
return self.snapshot.device.devicehub_id