Merge pull request #412 from eReuse/bugfix/4122-snapshots-log-type-upload
Bugfix/4122 snapshots log type upload
This commit is contained in:
commit
0233a2ba6b
|
@ -73,7 +73,7 @@ class SnapshotsLog(Thing):
|
||||||
snapshots = []
|
snapshots = []
|
||||||
for s in self.snapshot.device.actions:
|
for s in self.snapshot.device.actions:
|
||||||
if s == self.snapshot:
|
if s == self.snapshot:
|
||||||
continue
|
break
|
||||||
if s.type == self.snapshot.type:
|
if s.type == self.snapshot.type:
|
||||||
snapshots.append(s)
|
snapshots.append(s)
|
||||||
return snapshots and 'Update' or 'New Device'
|
return snapshots and 'Update' or 'New Device'
|
||||||
|
|
Reference in New Issue