maybe fix optional username
This commit is contained in:
parent
6069583960
commit
5c7842f37d
1 changed files with 1 additions and 1 deletions
2
app.rb
2
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)
|
||||
|
|
Loading…
Reference in a new issue