Skip to content

Commit

Permalink
Fix variable names for add_detectors
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaytan committed Aug 30, 2024
1 parent 5635407 commit 47cd74d
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 47cd74d

Please sign in to comment.