lib/ayadn/view.rb in ayadn-1.2.1 vs lib/ayadn/view.rb in ayadn-1.2.2

- old
+ new

@@ -6,15 +6,16 @@ @workers = Workers.new end def show_posts_with_index(data, options, niceranks = {}) posts, view = build_stream_with_index(data, options, niceranks) - puts view + puts view unless view == "" Databases.save_indexed_posts(posts) end def show_posts(data, options, niceranks = {}) - puts build_stream_without_index(data, options, niceranks) + resp = build_stream_without_index(data, options, niceranks) + puts resp unless resp == "" end def show_raw(stream) #puts stream.to_json jj stream