mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	use black code format for locale/pick-complete-translations.py
This commit is contained in:
		
							parent
							
								
									eef237de85
								
							
						
					
					
						commit
						0cce48dc04
					
				
					 2 changed files with 8 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -27,12 +27,14 @@ else:
 | 
			
		|||
active = set()
 | 
			
		||||
print('name                               locale   translated approved error-free')
 | 
			
		||||
for locale in sorted(data, key=lambda locale: locale['code']):
 | 
			
		||||
    print('%26s' % locale['name'],
 | 
			
		||||
          '%8s' % locale['code'],
 | 
			
		||||
          '%0.1f%%' % locale['translated_percent'],
 | 
			
		||||
          '%0.1f%%' % locale['approved_percent'],
 | 
			
		||||
          '%0.1f%%' % (100 - locale['failing_percent']),
 | 
			
		||||
          sep='\t')
 | 
			
		||||
    print(
 | 
			
		||||
        '%26s' % locale['name'],
 | 
			
		||||
        '%8s' % locale['code'],
 | 
			
		||||
        '%0.1f%%' % locale['translated_percent'],
 | 
			
		||||
        '%0.1f%%' % locale['approved_percent'],
 | 
			
		||||
        '%0.1f%%' % (100 - locale['failing_percent']),
 | 
			
		||||
        sep='\t',
 | 
			
		||||
    )
 | 
			
		||||
    if locale['translated_percent'] >= 90 and locale['failing'] < 5:
 | 
			
		||||
        active.add(locale['code'])
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue