From 398c3b39f11a8d8e8ab88988c8db0a1509125ea3 Mon Sep 17 00:00:00 2001 From: erikvw Date: Fri, 10 Jan 2025 19:32:16 -0600 Subject: [PATCH] dont return repack request --- edc_pharmacy/utils/process_repack_request.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/edc_pharmacy/utils/process_repack_request.py b/edc_pharmacy/utils/process_repack_request.py index 404b103..9a3b0ab 100644 --- a/edc_pharmacy/utils/process_repack_request.py +++ b/edc_pharmacy/utils/process_repack_request.py @@ -1,6 +1,5 @@ from __future__ import annotations -from typing import TYPE_CHECKING from uuid import UUID from celery import shared_task @@ -9,14 +8,9 @@ from ..exceptions import InsufficientStockError, RepackError -if TYPE_CHECKING: - from ..models import RepackRequest - @shared_task -def process_repack_request( - repack_request_id: UUID | None = None, username: str | None = None -) -> RepackRequest: +def process_repack_request(repack_request_id: UUID | None = None, username: str | None = None): """Take from stock and fill container as new stock item.""" repack_request_model_cls = django_apps.get_model("edc_pharmacy.repackrequest") stock_model_cls = django_apps.get_model("edc_pharmacy.stock") @@ -68,7 +62,6 @@ def process_repack_request( ] ) repack_request.refresh_from_db() - return repack_request __all__ = ["process_repack_request"]