1
0
Fork 0
mirror of https://github.com/Findus23/matomo-utils.git synced 2024-09-18 14:03:44 +02:00

select time range

This commit is contained in:
Lukas Winkler 2021-09-22 13:44:21 +02:00
parent 37f765c851
commit 98097676c5
Signed by: lukas
GPG key ID: 54DE4D798D244853
2 changed files with 5 additions and 2 deletions

View file

@ -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)

View file

@ -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"]