Fixed args in endpoints

This commit is contained in:
Richard Bowman 2021-02-15 20:18:34 +00:00
parent 069d27bf15
commit b06dd187ec

View file

@ -106,9 +106,7 @@ def find_picamera() -> Tuple[PiCamera, BaseCamera, Microscope]:
class RecalibrateView(ActionView): class RecalibrateView(ActionView):
args = {} def post(self):
def post(self, args):
"""Reset the camera's settings. """Reset the camera's settings.
This generates new gains, exposure time, and lens shading This generates new gains, exposure time, and lens shading
@ -135,9 +133,7 @@ class RecalibrateView(ActionView):
microscope.save_settings() microscope.save_settings()
class AutoLensShadingTableView(ActionView): class AutoLensShadingTableView(ActionView):
args = {} def post(self):
def post(self, args):
"""Perform flat-field correction """Perform flat-field correction
This routine acquires a new image (which should be an This routine acquires a new image (which should be an