Skip to content

Commit

Permalink
fix(np): 旧版架构ipv6多重汇报导致做种数和做种量翻倍
Browse files Browse the repository at this point in the history
  • Loading branch information
fzlins committed Sep 28, 2023
1 parent 1505695 commit 7d26b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resource/schemas/NexusPHP/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@
"fields": {
"seeding": {
"selector": ["tr:not(:eq(0))"],
"filters": ["query.find('td.rowfollow:eq(2)').length != 0 ? query.find('td.rowfollow:eq(2)').length : query.length"]
"filters": ["let l={}; query.each(function() { l[jQuery(this).find('td.rowfollow:eq(1) a').attr('href')] = jQuery(this).find('td.rowfollow:eq(2)').text(); }); Object.keys(l).length;"]
},
"seedingSize": {
"selector": ["tr:not(:eq(0))"],
"filters": ["query.find('td.rowfollow:eq(2)').length != 0 ? jQuery.map(query.find('td.rowfollow:eq(2)'), (item)=>{return $(item).text();}) : jQuery.map(query.find('td:eq(2)'), (item)=>{return $(item).text();})", "_self.getTotalSize(query)"]
"filters": ["let l={}; query.each(function() { l[jQuery(this).find('td.rowfollow:eq(1) a').attr('href')] = jQuery(this).find('td.rowfollow:eq(2)').text(); }); _self.getTotalSize(Object.values(l));"]
}
}
},
Expand Down

0 comments on commit 7d26b54

Please sign in to comment.