File tree Expand file tree Collapse file tree 2 files changed +20159
-20154
lines changed Expand file tree Collapse file tree 2 files changed +20159
-20154
lines changed Original file line number Diff line number Diff line change @@ -149,12 +149,17 @@ def get_resource_language_stats() -> list[ResourceLanguageStatistics]:
149
149
return [ResourceLanguageStatistics .from_api_entry (entry ) for entry in resources ]
150
150
151
151
152
- def progress_from_resources (resources : Iterable [ResourceLanguageStatistics ]) -> tuple [float , float ]:
152
+ def progress_from_resources (
153
+ resources : Iterable [ResourceLanguageStatistics ],
154
+ ) -> tuple [float , float ]:
153
155
word_pairs = ((e .translated_words , e .total_words ) for e in resources )
154
156
string_pairs = ((e .translated_strings , e .total_strings ) for e in resources )
155
157
translated_total_words , total_words = (sum (counts ) for counts in zip (* word_pairs ))
156
158
translated_total_strs , total_strs = (sum (counts ) for counts in zip (* string_pairs ))
157
- return translated_total_words / total_words * 100 , translated_total_strs / total_strs * 100
159
+ return (
160
+ translated_total_words / total_words * 100 ,
161
+ translated_total_strs / total_strs * 100 ,
162
+ )
158
163
159
164
160
165
def get_number_of_translators ():
You can’t perform that action at this time.
0 commit comments