Skip to content

Commit

Permalink
rm print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
vcai122 committed Feb 27, 2024
1 parent f6f0864 commit 3dad44a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/portal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,11 @@ def browse(self, request):
# ).data
# )

res = Response(
return Response(
RetrievePollSerializer(
polls.distinct().order_by("-priority", "start_date", "expire_date"), many=True
).data
)
print(res)
return res

@action(detail=False, methods=["get"], permission_classes=[IsSuperUser])
def review(self, request):
Expand Down Expand Up @@ -278,7 +276,6 @@ def get_queryset(self):

@action(detail=False, methods=["get"])
def browse(self, request):
print("HERE")
"""
Returns a list of all posts that are targeted at the current user
For admins, returns list of posts that they have not approved and have yet to expire
Expand Down

0 comments on commit 3dad44a

Please sign in to comment.