debianize-mobilizon/lib/service/workers/export_cleaner_worker.ex
Thomas Citharel 0c667b13ae
Export participants to different formats
* CSV
* PDF (requires Python dependency `weasyprint`)
* ODS (requires Python dependency `pyexcel_ods3`)

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-10-05 10:52:55 +02:00

15 lines
376 B
Elixir

defmodule Mobilizon.Service.Workers.ExportCleanerWorker do
@moduledoc """
Worker to clean exports
"""
use Oban.Worker, queue: "background"
import Mobilizon.Service.Export.Participants.Common, only: [export_modules: 0]
@impl Oban.Worker
@spec perform(Oban.Job.t()) :: :ok
def perform(%Job{}) do
Enum.each(export_modules(), & &1.clean_exports())
end
end