projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Filter out internal users by default
[akkoma]
/
lib
/
pleroma
/
stats.ex
diff --git
a/lib/pleroma/stats.ex
b/lib/pleroma/stats.ex
index e7f8d272ccf28cb5f41ae7bd4afa33ea714a9d7f..e5c9c668baef9bafc9ee6b1658481cc36faf0af7 100644
(file)
--- a/
lib/pleroma/stats.ex
+++ b/
lib/pleroma/stats.ex
@@
-23,6
+23,7
@@
defmodule Pleroma.Stats do
@impl true
def init(_args) do
@impl true
def init(_args) do
+ if Pleroma.Config.get(:env) == :test, do: :ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo)
{:ok, nil, {:continue, :calculate_stats}}
end
{:ok, nil, {:continue, :calculate_stats}}
end