From ebfdf1d69f966d049f05ee1784808e60ba7c4f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Thu, 30 Nov 2023 21:33:15 +0100 Subject: [PATCH] fix firmware build serialization --- src/c3nav/mesh/newapi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/c3nav/mesh/newapi.py b/src/c3nav/mesh/newapi.py index e2686960..b7634561 100644 --- a/src/c3nav/mesh/newapi.py +++ b/src/c3nav/mesh/newapi.py @@ -122,6 +122,10 @@ class UploadFirmwareBuildSchema(Schema): project_description: dict = APIField(..., title='project_description.json contents') uploaded_filename: str = APIField(..., example="firmware.bin") + @staticmethod + def resolve_boards(obj): + return list(obj.boards) + class UploadFirmwareSchema(Schema): """