Added ignore modrinth flag when counting
parent
bfd5bf1a00
commit
355eb8d963
|
|
@ -264,6 +264,14 @@ if __name__ == "__main__":
|
||||||
required=False,
|
required=False,
|
||||||
dest="mod_loader",
|
dest="mod_loader",
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--ignore-modrinth",
|
||||||
|
help="Ignore modrinth entries",
|
||||||
|
default=False,
|
||||||
|
required=False,
|
||||||
|
action="store_true",
|
||||||
|
dest="ignore_modrinth",
|
||||||
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
page_size = clamp(args.page_size, 10, 50)
|
page_size = clamp(args.page_size, 10, 50)
|
||||||
|
|
@ -306,6 +314,8 @@ if __name__ == "__main__":
|
||||||
(curse_mods, curse_count) = fetch_curse_mods()
|
(curse_mods, curse_count) = fetch_curse_mods()
|
||||||
all_mods.extend(curse_mods)
|
all_mods.extend(curse_mods)
|
||||||
|
|
||||||
|
modrinth_count = 0
|
||||||
|
if not args.ignore_modrinth:
|
||||||
(modrinth_mods, modrinth_count) = fetch_modrinth_mods()
|
(modrinth_mods, modrinth_count) = fetch_modrinth_mods()
|
||||||
all_mods.extend(modrinth_mods)
|
all_mods.extend(modrinth_mods)
|
||||||
|
|
||||||
|
|
|
||||||
18
justfile
18
justfile
|
|
@ -1,10 +1,28 @@
|
||||||
|
|
||||||
set quiet
|
set quiet
|
||||||
|
|
||||||
|
count-big:
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
./curse-stats.py --game-version "1.2.5" --mod-loader Forge --count --ignore-modrinth
|
||||||
|
printf "\n"
|
||||||
|
./curse-stats.py --game-version "1.7.10" --mod-loader Forge --count --ignore-modrinth
|
||||||
|
printf "\n"
|
||||||
|
./curse-stats.py --game-version "1.12.2" --mod-loader Forge --count --ignore-modrinth
|
||||||
|
printf "\n"
|
||||||
|
./curse-stats.py --game-version "1.16.5" --mod-loader Forge --count --ignore-modrinth
|
||||||
|
printf "\n"
|
||||||
|
./curse-stats.py --game-version "1.20.1" --mod-loader Forge --count --ignore-modrinth
|
||||||
|
printf "\n"
|
||||||
|
./curse-stats.py --game-version "1.21.1" --mod-loader Forge --count --ignore-modrinth
|
||||||
|
printf "\n"
|
||||||
|
./curse-stats.py --game-version "1.21.1" --mod-loader NeoForge --count --ignore-modrinth
|
||||||
|
printf "\n"
|
||||||
|
|
||||||
count-120:
|
count-120:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
for i in {1..6}; do
|
for i in {1..6}; do
|
||||||
./curse-stats.py --game-version "1.20.${i}" --mod-loader Forge --count
|
./curse-stats.py --game-version "1.20.${i}" --mod-loader Forge --count
|
||||||
|
./curse-stats.py --game-version "1.20.${i}" --mod-loader NeoForge --count
|
||||||
printf "\n"
|
printf "\n"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue