From 27455060dd430263cabfd1264d0ea88bbef7885f Mon Sep 17 00:00:00 2001 From: Philip-Larsen-Donnelly <35666657+Philip-Larsen-Donnelly@users.noreply.github.com> Date: Thu, 21 Nov 2024 18:03:03 +0100 Subject: [PATCH] fix: update_cache.py only pull if there are no untranslated strings --- tools/update_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/update_cache.py b/tools/update_cache.py index 6323b87d2..b1eb56541 100644 --- a/tools/update_cache.py +++ b/tools/update_cache.py @@ -53,7 +53,7 @@ if r.slug not in skip_files: l_stats = r.language_stats(l.code) last_update = datetime.datetime.strptime(l_stats['last_update'], '%Y-%m-%dT%H:%M:%SZ') - if l_stats['untranslated_strings'] > 0 and last_update > min_date: + if l_stats['untranslated_strings'] == 0 and last_update > min_date: # print(last_update,r.name,r.slug) # pull the resource from transifex path = proj_lang_path+"/"+r.slug