X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FResult.php;h=3ced393cc64b1d13ebe3d2970e399e48550a9c13;hb=d1f28ea443b090c7593791eba9631796ccaeafe1;hp=e4954195bb3969ceb3be8510f2e085de276b9dcf;hpb=c59d0714d62f9028135cc9cff829d16b91e5fb4f;p=alttp.git diff --git a/app/Models/Result.php b/app/Models/Result.php index e495419..3ced393 100644 --- a/app/Models/Result.php +++ b/app/Models/Result.php @@ -18,7 +18,7 @@ class Result extends Model } public function getHasFinishedAttribute() { - return $this->time > 0; + return $this->time > 0 || $this->forfeit; } protected $appends = [ @@ -26,6 +26,7 @@ class Result extends Model ]; protected $fillable = [ + 'forfeit', 'round_id', 'time', 'user_id',