look up firmware first seen timestamp correctly (for real now)

This commit is contained in:
Gwendolyn 2024-03-29 18:08:46 +01:00
parent a09a34638d
commit b7c6fe8cfc

View file

@ -149,8 +149,8 @@ class MeshNodeQuerySet(models.QuerySet):
message_type=MeshMessageType.CONFIG_FIRMWARE.name,
data__content__app_desc__app_elf_sha256__in=(node._firmware_description.sha256_hash
for node in nodes_to_complete)
).order_by('data__content__app_elf_sha256',
'datetime').distinct('data__content__app_elf_sha256')
).order_by('data__content__app_desc__app_elf_sha256',
'datetime').distinct('data__content__app_desc__app_elf_sha256')
}
print(created_lookup)
except NotSupportedError: