0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 02:31:30 +01:00
posthog/ee/tasks/org_usage_report.py
Karl-Aksel Puulmann 9929161e35
Delete old events-model adjacent code (#8623)
* Remove event admin

* Move posthog/tasks/test/test_org_usage_report.py clickhouse version inline

* Remove postgres-specific code from org usage report

* Kill dead on_perform method

* Remove dead EventSerializer

* Remove a dead import

* Remove a dead command

* Clean up test, dont create a model

* Remove dead code

* Clean up test_element

* Clean up test event code

* Remove a dead function

* Clean up dead imports

* Remove dead code

* Code style cleanup

* Fix foss test

* Simplify fn

* Org usage fixup #3
2022-02-16 15:15:46 +02:00

12 lines
344 B
Python

from typing import List
from posthog.tasks.org_usage_report import OrgReport, send_all_reports
def send_all_org_usage_reports(*, dry_run: bool = False) -> List[OrgReport]:
"""
Creates and sends usage reports for all teams.
Returns a list of all the successfully sent reports.
"""
return send_all_reports(dry_run=dry_run)