]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Result.php
lock rounds
[alttp.git] / app / Models / Result.php
index e4954195bb3969ceb3be8510f2e085de276b9dcf..3ced393cc64b1d13ebe3d2970e399e48550a9c13 100644 (file)
@@ -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',