Skip to content

Commit

Permalink
♻️Refact: 사용하지 않는 변수 제거 #9
Browse files Browse the repository at this point in the history
- CI 과정 중 posts/views.py에 173번째 줄에 ordering이라는 변수를 사용하지 않아 제거 했습니다
Related to #9
  • Loading branch information
JaeHyuckSa committed Oct 27, 2023
1 parent 9afae8d commit 4b8195b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def get(self, request: Request, o: dict) -> Response:
posts = Post.objects.filter(q)

# 사용자 정의 정렬 필터 적용
ordering = PostFilter(request.GET, queryset=posts)
PostFilter(request.GET, queryset=posts)

# post_type에 따라 필터링 된 게시물 목록 가져오기
post_type_list = self.get_post_type_list(posts, post_type)
Expand Down

0 comments on commit 4b8195b

Please sign in to comment.