Skip to content

Commit

Permalink
Moar sensible ph tag formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fidothe committed Jun 20, 2010
1 parent a28f06f commit ca095d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/tags_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def show

def update
tags = []
tags << "soil:pH=%1f" % params[:ph] if params[:ph]
tags << "soil:pH=%1.2f" % params[:ph] if params[:ph]
tags << "soil:texture=#{URI.escape(params[:texture])}" if params[:texture]
tags << "soil:colour=#{URI.escape(params[:colour])}" if params[:colour]
flickr.photos.setTags :photo_id => params[:id], :tags => tags.join(" "), :auth => session[:flickr_auth_token]
Expand Down

0 comments on commit ca095d5

Please sign in to comment.