diff --git a/webservice/webservice.py b/webservice/webservice.py index efedd964dfe76c3266910043f8690aae639c4df8..600168b542fe5e9874131dec281328b5ee7a530b 100644 --- a/webservice/webservice.py +++ b/webservice/webservice.py @@ -752,7 +752,10 @@ async def update_mdc_status(mdc: MetadataClient, action: str, if action == 'correct': func = mdc.update_run_api - data = {'flg_cal_data_status': flag, 'cal_pipeline_reply': message} + data = {'cal_pipeline_reply': message} + # Don't send the 'R' status, as this may trigger another correction + if flag != 'R': + data['flg_cal_data_status'] = flag elif action == 'dark_request': func = mdc.update_dark_run_api