Commit 644ea562 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[list] custom csv parsing

parent a11c6b4d
Pipeline #1660 canceled with stage
...@@ -100,6 +100,15 @@ post l m = do ...@@ -100,6 +100,15 @@ post l m = do
-- TODO reindex -- TODO reindex
pure True pure True
------------------------------------------------------------------------
csvPost :: FlowCmdM env err m
=> ListId
-> NgramsList
-> m Bool
csvPost l m = do
printDebug "[csvPost] l" l
printDebug "[csvPost] m" m
pure True
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
-- | Re-index documents of a corpus with new ngrams (called orphans here) -- | Re-index documents of a corpus with new ngrams (called orphans here)
...@@ -220,7 +229,7 @@ csvPostAsync' l (WithFile _ m _) logStatus = do ...@@ -220,7 +229,7 @@ csvPostAsync' l (WithFile _ m _) logStatus = do
, _scst_remaining = Just 1 , _scst_remaining = Just 1
, _scst_events = Just [] , _scst_events = Just []
} }
_r <- post l m _r <- csvPost l m
pure JobLog { _scst_succeeded = Just 1 pure JobLog { _scst_succeeded = Just 1
, _scst_failed = Just 0 , _scst_failed = Just 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment