Skip to content

Commit

Permalink
fix: Switch function argument to date start (#4052)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachaysan authored May 30, 2024
1 parent adc6429 commit d8f48a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/sales_dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ def organisation_info(request: HttpRequest, organisation_id: int) -> HttpRespons
context["api_calls"] = {
# TODO: this could probably be reduced to a single influx request
# rather than 3
range_: get_events_for_organisation(organisation_id, date_range=range_)
range_: get_events_for_organisation(
organisation_id, date_start=f"-{range_}"
)
for range_ in ("24h", "7d", "30d")
}

Expand Down

0 comments on commit d8f48a7

Please sign in to comment.