Skip to content

Commit

Permalink
Serhii milestone 2 fix (#56)
Browse files Browse the repository at this point in the history
* chores_lint_errors_and_path_issues

* feature_db_py

* fix_audio_issue

* chores_lint_error

* fix_openAPI_switching

* chore_module_insert

* fix_edit_collection_fix

* fix_frontend_critical_update

* fix_feedback2_translation_async

* chore:lint

* chore:loading_issue

* chore:module

* chore:version-python-socketio[asgi]

* chore:main.py

* chore:path

* test
  • Loading branch information
Serhii Ofii authored Oct 20, 2024
1 parent 239902b commit 80c3cad
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions linguaphoto/api/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from linguaphoto.crud.image import ImageCrud
from linguaphoto.models import Image
from linguaphoto.schemas.image import ImageTranslateFragment
from linguaphoto.socket_manager import notify_user
from linguaphoto.utils.auth import get_current_user_id, subscription_validate

router = APIRouter()
Expand All @@ -21,8 +20,6 @@ async def translate_background(image_id: str, image_crud: ImageCrud, user_id: st
translating_images.append(image_id)
image = await image_crud.translate(image_id, user_id)
translating_images.remove(image_id)
if image:
await notify_user(user_id, image.model_dump()) # Use await here


@router.post("/upload", response_model=Image)
Expand Down

0 comments on commit 80c3cad

Please sign in to comment.