remove dependency on redis json

This commit is contained in:
Simon
2024-12-22 22:59:48 +07:00
parent 7ffa6ff807
commit fbd7c19a93
8 changed files with 43 additions and 37 deletions

View File

@@ -102,7 +102,7 @@ class VideoProgressView(ApiBaseView):
"""get progress for a single video"""
user_id = request.user.id
key = f"{user_id}:progress:{video_id}"
video_progress = RedisArchivist().get_message(key)
video_progress = RedisArchivist().get_message_dict(key)
position = video_progress.get("position", 0)
self.response = {