From e17bef4122dc142074d1dbac6ebecee64f4f3548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=ADITQ?= Date: Sat, 16 Mar 2024 13:31:48 +0300 Subject: [PATCH] Formatted files --- solution/pulse/api/posts/views.py | 4 ++-- solution/pulse/api/users/authentication.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/solution/pulse/api/posts/views.py b/solution/pulse/api/posts/views.py index 422018b..814c033 100644 --- a/solution/pulse/api/posts/views.py +++ b/solution/pulse/api/posts/views.py @@ -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): diff --git a/solution/pulse/api/users/authentication.py b/solution/pulse/api/users/authentication.py index 72a9840..bb8faa1 100644 --- a/solution/pulse/api/users/authentication.py +++ b/solution/pulse/api/users/authentication.py @@ -1,4 +1,3 @@ -import bcrypt import jwt from django.conf import settings from rest_framework.authentication import (