Skip to content

Commit c73edfd

Browse files
committed
Removed 'label' field from the 'RsyncerSource' Pydantic models, and removed the key from requests to endpoints that use that model
1 parent 4d783a7 commit c73edfd

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/murfey/instrument_server/api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ def update_multigrid_controller_visit_end_time(
223223

224224
class RsyncerSource(BaseModel):
225225
source: Path
226-
label: str
227226

228227

229228
@router.post("/sessions/{session_id}/stop_rsyncer")

src/murfey/server/api/instrument.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ async def stop_rsyncer(
340340
async with clientsession.post(
341341
f"{machine_config.instrument_server_url}{url_path_for('api.router', 'stop_rsyncer', session_id=session_id)}",
342342
json={
343-
"label": session_id,
344343
"source": str(secure_path(Path(rsyncer_source.source))),
345344
},
346345
headers={
@@ -367,7 +366,6 @@ async def finalise_rsyncer(
367366
async with clientsession.post(
368367
f"{machine_config.instrument_server_url}{url_path_for('api.router', 'finalise_rsyncer', session_id=session_id)}",
369368
json={
370-
"label": session_id,
371369
"source": str(secure_path(Path(rsyncer_source.source))),
372370
},
373371
headers={
@@ -467,7 +465,6 @@ async def remove_rsyncer(
467465
async with clientsession.post(
468466
f"{machine_config.instrument_server_url}{url_path_for('api.router', 'remove_rsyncer', session_id=session_id)}",
469467
json={
470-
"label": session_id,
471468
"source": str(secure_path(Path(rsyncer_source.source))),
472469
},
473470
headers={
@@ -495,7 +492,6 @@ async def restart_rsyncer(
495492
async with clientsession.post(
496493
f"{machine_config.instrument_server_url}{url_path_for('api.router', 'restart_rsyncer', session_id=session_id)}",
497494
json={
498-
"label": session_id,
499495
"source": str(secure_path(Path(rsyncer_source.source))),
500496
},
501497
headers={
@@ -523,7 +519,6 @@ async def flush_skipped_rsyncer(
523519
async with clientsession.post(
524520
f"{machine_config.instrument_server_url}{url_path_for('api.router', 'flush_skipped_rsyncer', session_id=session_id)}",
525521
json={
526-
"label": session_id,
527522
"source": str(secure_path(Path(rsyncer_source.source))),
528523
},
529524
headers={

0 commit comments

Comments
 (0)