Skip to content

Commit 2eb2be8

Browse files
authored
fix(script): fix wrong polib usage
1 parent 15c239b commit 2eb2be8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.scripts/summarize_progress/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def format_line_po(filename: str, po_link: str, progress: str, num_entries: str,
102102
dirname = path.parent.name if path.parent.name != BASE_DIR.name else 'root'
103103
po = polib.pofile(filepath)
104104

105-
num_entries = len(list(filter(lambda e: not e.obsolete(), po)))
105+
num_entries = len(list(filter(lambda e: not e.obsolete, po)))
106106
num_translated = len(po.translated_entries())
107107
summary.setdefault(dirname, {})[filename] = {
108108
'po_info': {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy