Skip to content

Commit

Permalink
改一处小bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Hao23333 committed Mar 31, 2021
1 parent f546848 commit ee6d49e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 221801101&221801122/api/trend.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function getTrend(paperArray, keyword) {
for (const paper of paperArray) {
const year = paper['year'];
const keywords = paper['keywords'];
if (year<2020 && year>=2010)
if (year < 2020 && year >= 2010)
if (keywords.indexOf(keyword) > -1)
++trend[year - 2010]
}
Expand Down
4 changes: 2 additions & 2 deletions 221801101&221801122/static/js/script.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function requestTop10() {
$.get('/PairHomework/api/top10', result => {
const peak = top10[0];
const top10 = JSON.parse(result);
const peak = top10[0];
performSearch(peak);
loadTrend(peak);
renderTop10(top10);
Expand Down Expand Up @@ -95,7 +95,7 @@ function renderSearchResult(searchResult, keyword) {
{
const ab = item['abstraction'];
if (ab) {
const b = document.createElement('b');
const b = document.createElement('b');
const p = document.createElement('p');
b.append('摘要:');
p.append(b);
Expand Down

0 comments on commit ee6d49e

Please sign in to comment.