Permalink
Browse files

Output empty stars for unrated

  • Loading branch information...
1 parent 0cb8e8b commit 03b9ffecdaf034a17e27b6ab9f273e867031a0f7 @ErebusBat committed Jan 26, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 itunes_track_stars.rb
@@ -6,8 +6,9 @@
def stars_from_rating rating
- "" * rating
- #"☆" * rating
+ stars = "" * rating
+ stars += "" * (5-rating)
+ stars
end
puts stars_from_rating(cache_file[:stars])

0 comments on commit 03b9ffe

Please sign in to comment.