Skip to content

Commit

Permalink
Update tracks profiling
Browse files Browse the repository at this point in the history
Added new data to the profiling output.
  • Loading branch information
BGMP committed Oct 30, 2023
1 parent acae17a commit 27da5c4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,17 @@ task :profile_tracks do

data = CSV.read("models/tracks/#{f}")
data.drop(1).each do |l|
slug = l[0].gsub(' ', '_').downcase

track_lines = [
"\"#{l[0]}\": #{l[1]}"
"\s\s#{slug}:",
"\s\s\s\sname: \"#{l[0]}\"",
"\s\s\s\sslug: \"#{slug}\"",
"\s\s\s\sshort_name: \"#{l[1]}\"",
"\s\s\s\sdifficulty: #{l[2]}",
"\s\s\s\slength: #{l[3]}",
"\s\s\s\sfolder_name: #{l[4]}",
"\s\s\s\sstock: #{l[5]}"
]

track_lines.each do |line|
Expand Down

0 comments on commit 27da5c4

Please sign in to comment.