-
Notifications
You must be signed in to change notification settings - Fork 15
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
Cao zihao 201831990221 pick most popular articles #50
Open
spm2020spring
wants to merge
10
commits into
master
Choose a base branch
from
CaoZihao-201831990221-autorank
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Recommend five articles with high popularity on the homepage.We added the homepage into two parts. Articles in the first part are top 5 in popularity, and this part will update according to the popularity of each article and how long the article has been shown on it Articles in the second part are all the articles posted before,sorted by release time from newest to oldest.
io.html中用jinja做了个for循环输出article.title,所以需要在def index():中声明调用的字典,以metric为参考列用query.order_by进行降序排序后取前五位作为top5
用jinja写一个for循环动态输出articles里的top5
spm2020spring
commented
Dec 29, 2020
spm2020spring
commented
Dec 29, 2020
spm2020spring
commented
Dec 29, 2020
spm2020spring
commented
Dec 29, 2020
spm2020spring
commented
Dec 29, 2020
delete the useless 'render'
assist the jinja frame in io.html working well
change the address in line 159 to relative
Changed the color style to cleaner
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
By 朱倩, 曹子昊, 费宇馨, 李婷