Compare commits

...

2 Commits

Author SHA1 Message Date
333fa21b89 Merge pull request 'fix: countries not being properly sourced' (#4991) from fix/countries into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #4991
2025-04-28 09:39:10 +00:00
Darragh Elliott
3d536e9337 fix: countries not being properly sourced
All checks were successful
continuous-integration/drone/pr Build is passing
no global data was being sourced correctly in xmllists
2025-04-28 10:37:38 +01:00

View File

@ -35,7 +35,7 @@ def _update_for_base(
with base.with_suffix(".sources").open(mode="r") as file:
for line in file:
pattern = (
re.sub(r":\[.*\]$", "*", line)
re.sub(r"(\*)?:\[.*\]$", "*", line)
.replace("$nextyear", nextyear)
.replace("$thisyear", thisyear)
.replace("$lastyear", lastyear)
@ -90,7 +90,8 @@ def _update_module_xmllists(languages: list[str], pool: multiprocessing.Pool) ->
lambda path: get_basepath(path),
filter(
lambda path: lang_from_filename(path) in languages,
site.glob("**/*.*.xml"),
list(site.glob("**/*.*.xml"))
+ list(Path("global/").glob("**/*.*.xml")),
),
)
)