mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
9929161e35
* 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
12 lines
344 B
Python
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)
|