Add default values to optional fields in SampleUpdate

This commit is contained in:
GotthardG
2025-01-10 10:00:14 +01:00
parent 782bfe9e0b
commit 1e766fa620
3 changed files with 9 additions and 6 deletions

View File

@ -233,7 +233,10 @@ async def get_pucks_with_tell_position(db: Session = Depends(get_db)):
for puck, event, dewar in pucks_with_events:
# Fetch associated samples for this puck
samples = db.query(SampleModel).filter(SampleModel.puck_id == puck.id).all()
# Print fetched data for debugging
print(f"Pucks with Events and Dewars: {pucks_with_events}")
for puck, event, dewar in pucks_with_events:
print(f"Puck: {puck}, Event: {event}, Dewar: {dewar}")
# Construct the response model
results.append(
PuckWithTellPosition(