pick-complete-translations.py: use new Weblate API

This commit is contained in:
Hans-Christoph Steiner 2025-03-19 17:03:06 +01:00
parent b416d9b604
commit a95f4f11b0
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA

View file

@ -19,10 +19,10 @@ if os.path.exists(cached_file):
with open(cached_file) as fp:
data = json.load(fp)
else:
url = 'https://hosted.weblate.org/exports/stats/f-droid/fdroidserver/?format=json'
url = 'https://hosted.weblate.org/api/components/f-droid/fdroidserver/statistics/?format=json'
r = requests.get(url)
r.raise_for_status()
data = r.json()
data = r.json()['results']
active = set()
print('name locale translated approved error-free')