chore(script/dump-repology-data): improve docs
Signed-off-by: Aditya Alok <alok@termux.dev>
This commit is contained in:
parent
d759dc3375
commit
335e1fc34d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue