diff --git a/localisation/count-changes.py b/localisation/count-changes.py index 3b9850e..f99c83c 100644 --- a/localisation/count-changes.py +++ b/localisation/count-changes.py @@ -21,7 +21,9 @@ actions = { def print_count(project, year, month, csv=False): for action, action_name in actions.items(): params = { - "action": action + "action": action, + "timestamp_after": f"{year}-{month}-01T00:00:00+00:00", + "timestamp_before": f"{year}-{month + 1}-01T00:00:00+00:00" } r = s.get(url + f"projects/{project}/changes/", params=params) diff --git a/localisation/mass-edit.py b/localisation/mass-edit.py index 891ec96..f3e535f 100644 --- a/localisation/mass-edit.py +++ b/localisation/mass-edit.py @@ -66,6 +66,7 @@ while data["next"]: components[comp["slug"]] = comp assert len(components) == count +print(f"{count} components") phpcomponents = {slug: comp for slug, comp in components.items() if not comp["is_glossary"]} @@ -79,7 +80,7 @@ core_repo_components = {slug: comp for slug, comp in components.items() if non_core_repo_components = diff_dicts(phpcomponents, core_repo_components) non_core_repo_components = diff_dicts(non_core_repo_components, community_components) -for slug, comp in phpcomponents.items(): +for slug, comp in community_components.items(): print(slug, comp["name"]) addon_ids, addon_configs = get_addons(comp["addons"]) license = comp["license"]