Skip to content

Commit

Permalink
Merge pull request #112 from nmaytan/inst_info
Browse files Browse the repository at this point in the history
Fix variable names for add_detectors
  • Loading branch information
danielballan authored Aug 30, 2024
2 parents 8a11b89 + 47cd74d commit b2f3e5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/nsls2api/api/v1/beamline_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async def add_or_delete_detector(
if deleted_detector is None:
raise HTTPException(
status_code=404,
detail=f"Detector {detector_name} was not found for beamline {beamline_name}",
detail=f"Detector {detector_name} was not found for beamline {name}",
)

changed_detector = deleted_detector
Expand Down
2 changes: 1 addition & 1 deletion src/nsls2api/services/beamline_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async def add_detector(
manufacturer=manufacturer,
)

current_detector_names = (detector.name for detector in beamlines.detectors)
current_detector_names = (detector.name for detector in beamline.detectors)
current_directory_names = (
detector.directory_name for detector in beamline.detectors
)
Expand Down

0 comments on commit b2f3e5b

Please sign in to comment.