Compare commits

..

1 Commits

Author SHA1 Message Date
Shadowfacts d72e07cb46
Start pipeline system 2019-07-08 22:41:18 -04:00
1 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,12 @@ defmodule Frenzy.Pipeline.FilterStage do
alias Frenzy.Pipeline.Stage alias Frenzy.Pipeline.Stage
@behaviour Stage @behaviour Stage
# @impl Stage
# def apply(opts, item_params) do
# matches = matches?(opts, item_params)
#
# end
@impl Stage @impl Stage
def apply(%{"mode" => mode, "score" => score, "rules" => rules}, item_params) def apply(%{"mode" => mode, "score" => score, "rules" => rules}, item_params)
when is_binary(mode) and is_integer(score) and is_list(rules) do when is_binary(mode) and is_integer(score) and is_list(rules) do