We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d695d9 commit d53253dCopy full SHA for d53253d
scripts/check_modules.py
@@ -416,9 +416,9 @@ def check_modules():
416
elif module.get('stars', 0) > 10:
417
module["defaultSortWeight"] = module["defaultSortWeight"] - 1
418
419
- # Lower modules with few stars in the default sort order.
420
- # if module.get('stars', 0) < 3:
421
- # module["defaultSortWeight"] += 1
+ # Modules with few stars shouldn't be too far up in the default sort order. So we give them a minimum value of one.
+ elif module.get('stars', 0) < 3:
+ module["defaultSortWeight"] = max(module["defaultSortWeight"], 1)
422
423
# Just to reduce imbalance in the default sort order, modules from this developer get a minimum value of one.
424
if module['maintainer'] == "KristjanESPERANTO":
0 commit comments