We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b09997 commit 702a152Copy full SHA for 702a152
lib/algora/analytics/analytics.ex
@@ -29,9 +29,7 @@ defmodule Algora.Analytics do
29
active_previous:
30
u.id
31
|> count()
32
- |> filter(
33
- u.activated and u.inserted_at <= ^period_start and u.inserted_at >= ^previous_period_start
34
- )
+ |> filter(u.activated and u.inserted_at <= ^period_start and u.inserted_at >= ^previous_period_start)
35
}
36
37
contracts_query =
@@ -45,7 +43,7 @@ defmodule Algora.Analytics do
45
43
46
44
47
|> filter(
48
- (u.status == :active or u.status == :paid) and u.inserted_at < ^from and u.inserted_at >= ^period_start
+ (u.status == :active or u.status == :paid) and u.inserted_at < ^from and u.inserted_at >= ^period_start
49
),
50
success_previous:
51
0 commit comments