mirror of
https://github.com/inventree/inventree-website.git
synced 2025-04-27 21:16:45 +00:00
Fix get_stats.py
This commit is contained in:
parent
85b23bb6df
commit
5e407443b1
2
.github/get_stats.py
vendored
2
.github/get_stats.py
vendored
@ -40,7 +40,7 @@ forks = gh_data.get('forks_count', 0)
|
||||
link = get_data(f'https://api.github.com/repos/{github_project}/contributors?per_page=1', mode=ReturnMode.header).get('Link')
|
||||
contributors = link.split('page=')[-1].split('>')[0]
|
||||
# Crowdin
|
||||
crowdin_data = get_data(f'https://api.crowdin.com/api/v2/projects/{crowdin_projet_id}?limit=1000', 'data', auth=os.environ.get('CROWDIN_TOKEN'))
|
||||
crowdin_data = get_data(f'https://api.crowdin.com/api/v2/projects/{crowdin_projet_id}?limit=1000', 'data', auth=os.environ.get('CROWDIN_TOKEN'))
|
||||
languages = len(crowdin_data.get('targetLanguageIds', []))
|
||||
#translators = get_data(f'https://api.crowdin.com/api/v2/projects/{crowdin_projet_id}/members', 'data', auth=crowdin_token)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user