You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2017/12/13 14:14:59 UTC
[whimsy] branch master updated: Write the lists,
not the whole response
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 2c20fa7 Write the lists, not the whole response
2c20fa7 is described below
commit 2c20fa7dd226aa1c49e4d94c27a6de3707ce2e03
Author: Sebb <se...@apache.org>
AuthorDate: Wed Dec 13 14:14:44 2017 +0000
Write the lists, not the whole response
---
tools/ponyapi.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/ponyapi.rb b/tools/ponyapi.rb
index 8e1a6c6..1cda2de 100644
--- a/tools/ponyapi.rb
+++ b/tools/ponyapi.rb
@@ -32,10 +32,10 @@ module PonyAPI
lists = Hash[lists.sort] if sort_list
File.open(File.join("#{dir}", 'lists.json'), "w") do |f|
begin
- f.puts JSON.pretty_generate(jzon)
+ f.puts JSON.pretty_generate(lists)
rescue JSON::GeneratorError
puts "WARN:get_pony_lists() threw JSON::GeneratorError, continuing without pretty"
- f.puts jzon
+ f.puts lists
end
end
end
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].