Skip to content

Commit

Permalink
fix: update_cache.py
Browse files Browse the repository at this point in the history
only pull if there are no untranslated strings
  • Loading branch information
Philip-Larsen-Donnelly authored Nov 21, 2024
1 parent 6dc50b2 commit 2745506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/update_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2745506

Please sign in to comment.