Cool!


On Thu, Jan 30, 2014 at 10:23 PM, KenYN <notifications@github.com> wrote:

> In app/models/agents/website_agent.rb:
>
> >      end
> >
> >      def previous_payloads
> > -      events.order("id desc").limit(UNIQUENESS_LOOK_BACK).pluck(:payload).map(&:to_json) if options['mode'].to_s == "on_change"
> > +      look_back = options['uniqueness_look_back'] ? options['uniqueness_look_back'].to_i : UNIQUENESS_LOOK_BACK
>
> Or even this?
>
> look_back = (options['uniqueness_look_back'].presence || UNIQUENESS_LOOK_BACK).to_i
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/cantino/huginn/pull/154/files#r9335304>
> .
>