From 5c7842f37d9f959837daf244c74c968f78399de2 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 28 Apr 2015 10:39:33 -0400 Subject: [PATCH] maybe fix optional username --- app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.rb b/app.rb index 16c55d0..2528d1c 100644 --- a/app.rb +++ b/app.rb @@ -32,7 +32,7 @@ post '/' do end get '/bossfight/?:username' do - @username = params['username'] ? params['username'] : 'mafiaman' + @username = params['username'] != '' ? params['username'] : 'mafiaman' user_raids = Raid.for_user(@username) @first_negative = user_raids.first_negative @soldiers_killed = user_raids.soldiers_lost_to_date(@first_negative.created_at)