Skip to content

Commit

Permalink
Adjust variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ committed Jan 2, 2025
1 parent 2abc42f commit b2cbb40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/load_tx_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def extract_language_stats(lang):
f"filter[project]={project_id}&filter[language]=l:{lang}",
headers=headers)
all_resources = walk_pagination(resource_language_stats)
#print('all resources ', len(all_resources))
# print('all resources ', len(all_resources))

translated_strings = 0
total_strings = 0
Expand Down Expand Up @@ -93,7 +93,7 @@ def count_untranslatable_resources():
headers=headers
)
all_project_resources = walk_pagination(project_resources)
#print('all_project_resources ', all_project_resources)
# print('all_project_resources ', all_project_resources)

total_notranslate = 0
for resource in all_project_resources:
Expand Down Expand Up @@ -129,7 +129,7 @@ def walk_pagination(results):
).json()
results_data.extend(results['data'])

#print('end of while ', len(results_data))
# print('end of while ', len(results_data))
return results_data


Expand All @@ -149,7 +149,7 @@ def project_stats(languages):
global_percentage = round(
total_translated_strings*100/(total_strings * nb_languages), 2)

# print('all ', languages_list)
# print('all ', language_rate)
return {'nb_languages': nb_languages,
'total_strings': total_strings,
'translated_strings': total_translated_strings,
Expand Down

0 comments on commit b2cbb40

Please sign in to comment.