X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FResult.php;h=3ced393cc64b1d13ebe3d2970e399e48550a9c13;hb=812a270c7a410461e931394496512d36b34ef7b5;hp=e4954195bb3969ceb3be8510f2e085de276b9dcf;hpb=6eaecc8c176f85f1f494906fb796275a74c8dff2;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',