Add default values to optional fields in SampleUpdate
This commit is contained in:
@ -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(
|
||||
|
Reference in New Issue
Block a user