Skip to content

Commit

Permalink
1.9.4 dev.2
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyChen777 committed Aug 7, 2022
1 parent 14d2b0b commit 769a9e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paperlib",
"version": "1.9.4-dev.1",
"version": "1.9.4-dev.2",
"description": "A simple academic paper management tool for CSer.",
"productName": "Paperlib",
"author": "Geoffrey Chen <[email protected]>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,16 @@ export class PwCScraper extends Scraper {
results: {
url: string;
is_official: boolean;
stars: number;
}[];
};

if (response.count) {
let codeList: string[] = [];
for (const result of response.results) {

const sortedResults = response.results.sort((a, b) => b.stars - a.stars);

for (const result of sortedResults.slice(0, 3)) {
codeList.push(
JSON.stringify({
url: result.url,
Expand Down

0 comments on commit 769a9e3

Please sign in to comment.