Jump to content

akira

Member
  • Posts

    1
  • Joined

  • Last visited

Posts posted by akira

  1. I have same issue with my workflow in ruby. I'm trying to get data from a API. but Alfred give me  'fallback results' back.

    I can get correct feedback from Alfred if Item num is less than 11.

     

    persons = get_persons_from_a_API
    
    persons.each_with_index do |story, i|
      item = {
        :title =>    person['name'],
        :subtitle => person['address'],
        :arg =>      person['id'],
        :uid =>      person['id'],
        :icon =>     { :name => "icon.png" }
      }
    
      # I can't get proper feedback without 'if statement'
      feedback.add_item(item) if i < 10
    end
    
    puts feedback.to_xml
    
    
×
×
  • Create New...