Skip to content

Commit

Permalink
Remove debug code and sample data for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
yasulab committed Dec 25, 2024
1 parent 61086f9 commit c70ad93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion get_dojo_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,14 @@
end

dojo_list.sort_by!{ |dojo| dojo[:order] }
result << dojo_list.map{ |dojo| "#{dojo[:is_active]} <li><a href='#{dojo[:url]}'>#{dojo[:name]}</a><small>(#{dojo[:prefecture]})</small></li>" }.join("\n")
result << dojo_list.map{ |dojo| " <li><a href='#{dojo[:url]}'>#{dojo[:name]}</a><small>(#{dojo[:prefecture]})</small></li>" }.join("\n")
result << "\n</ul>\n"
puts result

#binding.irb
# 検索して見つからなかった Dojo 一覧があれば出力
if not_found.any?
puts ''
puts '--- NOTE ---'
puts "道場数: #{dojo_list.count}"
not_found.each {|dojo_name| puts "Not-found or In-active: #{dojo_name}" }
Expand Down
2 changes: 1 addition & 1 deletion get_dojo_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ CoderDojo 富山
CoderDojoとなみ
CoderDojo Yabuki
CoderDojo仙台若林
CoderDojo登米
CoderDojo徳島
CoderDojo 山形
CoderDojo Tsuruoka (鶴岡)
CoderDojo 札幌
Expand Down

0 comments on commit c70ad93

Please sign in to comment.