Apply suggestions from code review

Co-authored-by: Julien Palard <julien@palard.fr>
This commit is contained in:
Jules Lasne (jlasne) 2020-10-15 09:24:59 +02:00 committed by GitHub
parent 502c704bcb
commit b0f07e8b68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class PoFileStats:
] = self.pofile.untranslated_entries()
self.untranslated_nb: int = len(self.untranslated_entries)
self.entries_count: int = self.translated_nb + self.untranslated_nb
self.entries_count: int = len([e for e in self.pofile if not e.obsolete])
self.percent_translated: int = self.pofile.percent_translated()
self.po_file_size = len(self.pofile) - self.obsolete_nb
self.filename_dir: str = self.directory + "/" + self.filename