Skip to content

Commit

Permalink
dont return repack request
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Jan 11, 2025
1 parent bd65fb0 commit 398c3b3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions edc_pharmacy/utils/process_repack_request.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import annotations

from typing import TYPE_CHECKING
from uuid import UUID

from celery import shared_task
Expand All @@ -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")
Expand Down Expand Up @@ -68,7 +62,6 @@ def process_repack_request(
]
)
repack_request.refresh_from_db()
return repack_request


__all__ = ["process_repack_request"]

0 comments on commit 398c3b3

Please sign in to comment.