From ccfe90d4419febe37fb943e88787b47350603827 Mon Sep 17 00:00:00 2001 From: Christian Oertlin Date: Mon, 18 Mar 2024 13:21:34 +0100 Subject: [PATCH] code review --- genotype_api/api/endpoints/plates.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/genotype_api/api/endpoints/plates.py b/genotype_api/api/endpoints/plates.py index 0d731ba..f1d4adc 100644 --- a/genotype_api/api/endpoints/plates.py +++ b/genotype_api/api/endpoints/plates.py @@ -98,9 +98,8 @@ def sign_off_plate( """ plate: Plate = get_plate(session=session, plate_id=plate_id) - db_user = get_user_by_email(session=session, email=current_user.email) plate_sign_off = PlateSignOff( - user_id=db_user.id, + user_id=current_user.id, signed_at=datetime.now(), method_document=method_document, method_version=method_version,