Skip to content

Add minor features for top articles #407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 26, 2023
Merged

Add minor features for top articles #407

merged 2 commits into from
Aug 26, 2023

Conversation

000wan
Copy link
Member

@000wan 000wan commented Aug 9, 2023

관련 슬랙 스레드
이 외 변경사항은 pre-commit이 작동 안되서 pre-commit autoupdate 돌리면서 생긴 것들 입니다.

@000wan 000wan added the feature label Aug 9, 2023
@000wan 000wan self-assigned this Aug 9, 2023
@000wan 000wan force-pushed the feat/top-articles branch from f5d19e0 to 464ac22 Compare August 10, 2023 14:41
Comment on lines +248 to +249
before = articles.filter(topped_at__lte=obj.topped_at).first()
after = articles.filter(topped_at__gte=obj.topped_at).last()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lte, gte로 하면 현재 게시물도 포함되나요?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

221번 줄에서 articles = articles.exclude(id=obj.id) 해줘서 제외되는거 같아요 !

@000wan
Copy link
Member Author

000wan commented Aug 23, 2023

sparcs-kaist/new-ara-web#390 프론트 작업 마무리되어서 이 PR 리뷰해주시면 될 것 같아요~

@injoonH injoonH merged commit 344c1b1 into develop Aug 26, 2023
@injoonH injoonH deleted the feat/top-articles branch October 5, 2023 15:34
@injoonH injoonH mentioned this pull request Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants