|
|
@ -45,11 +45,9 @@ get "/products" do |context| |
|
|
|
if filename.char_at(0)!='.' |
|
|
|
if(skipped<skip) |
|
|
|
skipped+=1 |
|
|
|
STDOUT.puts "Skipped "+filename |
|
|
|
else |
|
|
|
ret.push Product.from_json File.read Statics.data_path+"products/"+filename |
|
|
|
sent+=1; |
|
|
|
STDOUT.puts "Sent "+filename |
|
|
|
end |
|
|
|
end |
|
|
|
rescue exception |
|
|
|