mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 11:50:14 +00:00
add youtube_id to progress api key
This commit is contained in:
parent
c4d6bb35a3
commit
6078d8d276
@ -123,7 +123,7 @@ class VideoProgressView(ApiBaseView):
|
|||||||
"""set progress position in redis"""
|
"""set progress position in redis"""
|
||||||
position = request.data.get("position", 0)
|
position = request.data.get("position", 0)
|
||||||
key = f"{request.user.id}:progress:{video_id}"
|
key = f"{request.user.id}:progress:{video_id}"
|
||||||
message = {"position": position}
|
message = {"position": position, "youtube_id": video_id}
|
||||||
RedisArchivist().set_message(key, message, expire=False)
|
RedisArchivist().set_message(key, message, expire=False)
|
||||||
self.response = request.data
|
self.response = request.data
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user