Skip to content

Commit

Permalink
- Fix adding entry to "vtt_task" table and storing "SENT" task state …
Browse files Browse the repository at this point in the history
…in database

- Fix VTT schema in README
  • Loading branch information
Bizordec committed Apr 30, 2022
1 parent 1344aaf commit 2c64d8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/celery_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ def set_state_on_task_call(

if short_task_name == "forward_wall":
vk_type = VttTaskType.wall
vk_id = kwargs.get("wall_id")
vk_id = _kwargs.get("wall_id")
elif short_task_name == "forward_playlist":
vk_type = VttTaskType.playlist
vk_id = kwargs.get("playlist_id")
vk_id = _kwargs.get("playlist_id")
else:
vk_type = VttTaskType.unknown
vk_id = 0

vtt_store_result(
vk_type=vk_type,
vk_owner_id=kwargs["owner_id"],
vk_owner_id=_kwargs["owner_id"],
vk_id=vk_id,
task_uuid=task_id,
result=None,
Expand Down
Binary file modified assets/vtt_schema.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2c64d8d

Please sign in to comment.