Skip to content

Commit

Permalink
Remove unneeded method
Browse files Browse the repository at this point in the history
  • Loading branch information
macobo committed Jul 3, 2024
1 parent f0f7b2d commit fe518b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/plausible/stats/legacy_query_builder.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Plausible.Stats.LegacyQueryBuilder do
use Plausible

alias Plausible.Stats.{Interval, Query}
alias Plausible.Stats.{Filters, Interval, Query}

def from(site, params) do
now = NaiveDateTime.utc_now(:second)
Expand Down
9 changes: 1 addition & 8 deletions lib/plausible/stats/query.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ defmodule Plausible.Stats.Query do
struct!(__MODULE__, Map.to_list(query_data))
|> put_imported_opts(site, %{})
|> put_experimental_reduced_joins(site, params)
|> struct!(v2: true)
|> struct!(v2: true, now: NaiveDateTime.utc_now(:second))

{:ok, query}
end
Expand Down Expand Up @@ -106,13 +106,6 @@ defmodule Plausible.Stats.Query do
|> refresh_imported_opts()
end

def exclude_imported(query) do
struct!(query,
include_imported: false,
skip_imported_reason: :manual_exclusion
)
end

defp refresh_imported_opts(query) do
put_imported_opts(query, nil, %{})
end
Expand Down

0 comments on commit fe518b0

Please sign in to comment.