]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Result.php
add import linting
[alttp.git] / app / Models / Result.php
index e5c9f7e77f8b756380275ebdf09854fe64df0555..e4954195bb3969ceb3be8510f2e085de276b9dcf 100644 (file)
@@ -17,6 +17,14 @@ class Result extends Model
                return $this->belongsTo(Participant::class);
        }
 
+       public function getHasFinishedAttribute() {
+               return $this->time > 0;
+       }
+
+       protected $appends = [
+               'has_finished',
+       ];
+
        protected $fillable = [
                'round_id',
                'time',