Extract last year's interaction data

This commit is contained in:
2024-10-15 20:32:08 +02:00
parent 4cb3301bc7
commit e3093c99c7
3 changed files with 71 additions and 38 deletions

View File

@@ -19,7 +19,7 @@ defmodule MihainatorWeb.UploadLive do
@impl Phoenix.LiveView
def handle_event("save", _params, socket) do
consume_uploaded_entries(socket, :history, fn %{path: path}, _entry ->
Task.async(fn -> Mihainator.CSVParser.start(path) end)
Task.async(fn -> Mihainator.Extractor.extract(path) end)
{:ok, nil}
end)