File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -86,13 +86,13 @@ def select_l10n_mappings(beta_version):
8686 Args:
8787 beta_version: the current beta version.
8888 """
89- # beta_split = (beta_version % 3) + 1
90- # if os.path.exists(f"l10n_CM/beta_run_splits/l10n_split_{beta_split}.json"):
91- # with open(f"l10n_CM/beta_run_splits/l10n_split_{beta_split}.json", "r") as f:
92- # current_split_mappings = {k: set(v) for k, v in json.load(f).items()}
93- # return current_split_mappings
94- # else:
95- return valid_l10n_mappings ()
89+ beta_split = (beta_version % 3 ) + 1
90+ if os .path .exists (f"l10n_CM/beta_run_splits/l10n_split_{ beta_split } .json" ):
91+ with open (f"l10n_CM/beta_run_splits/l10n_split_{ beta_split } .json" , "r" ) as f :
92+ current_split_mappings = {k : set (v ) for k , v in json .load (f ).items ()}
93+ return current_split_mappings
94+ else :
95+ return valid_l10n_mappings ()
9696
9797
9898if __name__ == "__main__" :
@@ -187,5 +187,5 @@ def select_l10n_mappings(beta_version):
187187 selected_mappings |= sample_mappings
188188 break
189189
190- save_mappings (l10n_mappings )
190+ save_mappings (selected_mappings )
191191 sys .exit (0 )
You can’t perform that action at this time.
0 commit comments