File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -497,16 +497,11 @@ def check_modules():
497497 module ["issues" ] = False
498498
499499 # Lift modules with many stars in the default sort order.
500- if module .get ('stars' , 0 ) > 50 :
501- module ["defaultSortWeight" ] = module ["defaultSortWeight" ] - \
502- (module ['stars' ] // 50 )
503- elif module .get ('stars' , 0 ) > 10 :
504- module ["defaultSortWeight" ] = module ["defaultSortWeight" ] - 1
500+ module ["defaultSortWeight" ] = module ["defaultSortWeight" ] - (module ['stars' ] // 20 )
505501
506502 # Modules with few stars shouldn't be too far up in the default sort order. So we give them a minimum value of one.
507- elif module .get ('stars' , 0 ) < 3 :
508- module ["defaultSortWeight" ] = max (
509- module ["defaultSortWeight" ], 1 )
503+ if module .get ('stars' , 0 ) < 3 :
504+ module ["defaultSortWeight" ] = max (module ["defaultSortWeight" ], 1 )
510505
511506 # Just to reduce imbalance in the default sort order, modules from this developer get a minimum value of one.
512507 if module ['maintainer' ] == "KristjanESPERANTO" and module ["name" ] != "MMM-EasyPix" :
You can’t perform that action at this time.
0 commit comments