chore(script/dump-repology-data): improve docs

Signed-off-by: Aditya Alok <alok@termux.dev>
This commit is contained in:
Aditya Alok 2023-10-04 05:04:41 +00:00
parent d759dc3375
commit 335e1fc34d
No known key found for this signature in database
GPG Key ID: 345AE134142077D8
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ from requests import get as requests_get
def get_repology_data(last_project):
repology_data = requests_get(
f"https://repology.org/api/v1/projects/{last_project}?inrepo=termux&outdated=True&families_newest=2-"
).json() # NOTE: We are using 2- so that api will return a package as outdated if it is so in 2 or more
f"https://repology.org/api/v1/projects/{last_project}?inrepo=termux&outdated=True&families_newest=2-", timeout=60
).json() # NOTE: We are using `families_newest=2-` so that api will return a package as outdated if it is so in 2 or more
# repo family. This helps us avoid false positives.
return repology_data