From b63f69654361dee8104c717de75e7912a6e8592a Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Fri, 31 Jan 2025 14:57:06 +0100 Subject: [PATCH] Fix timestamp method and loop variable order issues Updated `datetime.utcnow()` to `datetime.now()` to align with local timezone handling. Corrected the order of unpacked variables in the loop to match the structure of `pucks_with_latest_events`. --- backend/app/routers/puck.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/app/routers/puck.py b/backend/app/routers/puck.py index a009fcf..5caac6c 100644 --- a/backend/app/routers/puck.py +++ b/backend/app/routers/puck.py @@ -258,6 +258,7 @@ async def get_pucks_with_tell_position(db: Session = Depends(get_db)): Sample( id=sample.id, sample_name=sample.sample_name, + mount_count=sample.mount_count, position=sample.position, puck_id=sample.puck_id, data_collection_parameters=(