Merge pull request #412 from eReuse/bugfix/4122-snapshots-log-type-upload

Bugfix/4122 snapshots log type upload
This commit is contained in:
cayop 2022-11-29 18:35:27 +01:00 committed by GitHub
commit 0233a2ba6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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'