Formatted files
This commit is contained in:
1 parent
dc67db8e8f
commit
e17bef4122
2 files changed
+2
-3
No files matched your search
@@ -60,7 +60,7 @@ class MyFeedListApiView(ListAPIView):
|
||||
offset = serializer.validated_data.get("offset")
|
||||
|
||||
return self.request.user.posts.order_by("-createdAt").all()[
|
||||
offset: offset + limit
|
||||
offset : offset + limit
|
||||
]
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ class UserFeedListApiView(ListAPIView):
|
||||
limit = serializer.validated_data.get("limit")
|
||||
offset = serializer.validated_data.get("offset")
|
||||
|
||||
return user.posts.order_by("-createdAt").all()[offset: offset + limit]
|
||||
return user.posts.order_by("-createdAt").all()[offset : offset + limit]
|
||||
|
||||
|
||||
class LikePostApiView(APIView):
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import bcrypt
|
||||
import jwt
|
||||
from django.conf import settings
|
||||
from rest_framework.authentication import (
|
||||
|
||||
Reference in new issue
Block a user