Skip to content

Commit 1e73768

Browse files
matysonmarcus-oscarsson
authored andcommitted
sync number of snapshots between HWR and frontend on startup
1 parent b5309f0 commit 1e73768

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mxcubeweb/core/components/queue.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ def get_queue_state(self):
280280
"centringMethod": HWR.beamline.queue_manager.centring_method,
281281
}
282282

283+
self.app.queue.set_num_snapshots(
284+
res.get("numSnapshots", self.app.DEFAULT_NUM_SNAPSHOTS)
285+
)
286+
283287
res.update(settings)
284288
return res
285289

0 commit comments

Comments
 (0)