Skip to content

Commit dfd9a2f

Browse files
committed
Corrected comparison of 'session_id' to 'id' column in Session table
1 parent 8f38607 commit dfd9a2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/murfey/server/api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1977,7 +1977,7 @@ def create_session(instrument_name: str, visit: str, name: str, db=murfey_db) ->
19771977
def update_session(
19781978
session_id: MurfeySessionID, process: bool = True, db=murfey_db
19791979
) -> None:
1980-
session = db.exec(select(Session).where(session_id == session_id)).one()
1980+
session = db.exec(select(Session).where(Session.id == session_id)).one()
19811981
session.process = process
19821982
db.add(session)
19831983
db.commit()

0 commit comments

Comments
 (0)