We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24d6628 commit 824969aCopy full SHA for 824969a
src/murfey/server/api/session_info.py
@@ -43,6 +43,7 @@
43
ProcessingJob,
44
RsyncInstance,
45
Session,
46
+ SessionProcessingParameters,
47
SPAFeedbackParameters,
48
SPARelionParameters,
49
Tilt,
@@ -257,6 +258,16 @@ def update_current_gain_ref(
257
258
session = db.exec(select(Session).where(Session.id == session_id)).one()
259
session.current_gain_ref = new_gain_ref.path
260
db.add(session)
261
+
262
+ session_processing_parameters = db.exec(
263
+ select(SessionProcessingParameters).where(
264
+ SessionProcessingParameters.session_id == session_id
265
+ )
266
+ ).all()
267
+ if session_processing_parameters:
268
+ session_processing_parameters[0].gain_ref = new_gain_ref.path
269
+ db.add(session_processing_parameters[0])
270
271
db.commit()
272
273
0 commit comments