Skip to content

Commit

Permalink
Update john.moon
Browse files Browse the repository at this point in the history
  • Loading branch information
TangentFoxy committed Oct 27, 2016
1 parent 6aba8f3 commit a684d1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions john.moon
Expand Up @@ -63,10 +63,9 @@ class extends lapis.Application
if john = Johns\find id: @params.id
if john\update { score: john.score + 1 }
@session.info = "Vote saved."
return redirect_to: @url_for "john_submissions"
if @params.minus == "on"
if john = Johns\find id: @params.id
if john\update { score: john.score - 1 }
@session.info = "Vote saved."
return redirect_to: @url_for "john_submissions"
return redirect_to: @url_for "john_submissions"
}

0 comments on commit a684d1d

Please sign in to comment.