Searching for a plugin will now show them in an descending order

This commit is contained in:
Neocky 2021-03-13 23:44:01 +01:00
parent 0c06db576e
commit 8e41af6ec7

View File

@ -57,7 +57,7 @@ def getVersionName(packageId, versionId):
def searchPackage(ressourceName): def searchPackage(ressourceName):
url = f"https://api.spiget.org/v2/search/resources/{ressourceName}?field=name" url = f"https://api.spiget.org/v2/search/resources/{ressourceName}?field=name&sort=-downloads"
packageName = doAPIRequest(url) packageName = doAPIRequest(url)
i = 1 i = 1
print(f"Searching: {ressourceName}") print(f"Searching: {ressourceName}")