Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

endbericht_stats

endbericht_stats.livemd

endbericht_stats

use QuickAlias, MyAppWeb
use QuickAlias, MyAppBe
use QuickAlias, MyApp

require Ecto.Query
require Ash.Query
import MyApp.MavuEntities.UuidGuards

Section

anzahl_events=

  Event
|> Ash.Query.filter(oai_ready: true)
|> Ash.count!()
anzahl_titelbilder_fotos =
  LegacyMysqlAlbum
  |> LegacyRepo.all()
  |> Enum.map(fn a -> a.event_id end)
  |> Enum.uniq()
  |> length()
anzahl_locations=

  Location
|> Ash.Query.filter(oai_ready: true)
|> Ash.count!()
anzahl_agents=

  Agent
|> Ash.Query.filter(oai_ready: true)
|> Ash.count!()