Skip to content

Commit

Permalink
feat: menu celery task
Browse files Browse the repository at this point in the history
  • Loading branch information
fmelihh committed Dec 7, 2024
1 parent c32684d commit da62a84
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/recommendation_engine/app/features/menu/mappers/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ def getir_menu_to_dto(value_object: GetirMenuValue) -> MenuDto:
product_id=value_object.product_id,
name=value_object.name,
description=value_object.description,
image_url=value_object.image_url,
image_url=(
value_object.image_url
if value_object.image_url
else value_object.full_screen_image_url
),
price=value_object.price.amount,
price_currency=value_object.price.currency,
)
Expand Down
2 changes: 1 addition & 1 deletion src/recommendation_engine/app/tasks/comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ def run(self, *args, **kwargs):
"task": str(CommentTask.__module__),
"schedule": crontab(hour="12", minute="30"),
"options": {"queue": "periodic"},
}
}
2 changes: 1 addition & 1 deletion src/recommendation_engine/app/tasks/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ def run(self, *args, **kwargs):
"task": str(MenuTask.__module__),
"schedule": crontab(hour="12", minute="30"),
"options": {"queue": "periodic"},
}
}

0 comments on commit da62a84

Please sign in to comment.