wordle backend and some frontend changes
Build / Build-image (push) Successful in 1m13s

This commit is contained in:
2026-08-27 22:33:19 +02:00
parent 865ac153b2
commit 5d5250287d
6 changed files with 92 additions and 47 deletions
+3 -1
View File
@@ -13,7 +13,7 @@ class Tla extends Model
protected $fillable = ['acronym', 'hint', 'language', 'used', 'context', 'submitter', 'likes', 'dislikes'];
public static function GetCurrentTla( string $language ) : Tla {
public static function GetCurrentTla( string $language ) {
$tla = Tla::where('used', date("Y-m-d"))
->where('language', $language)
->first();
@@ -24,6 +24,8 @@ class Tla extends Model
->inRandomOrder()
->first();
if ($tla == NULL) return NULL;
$tla->used = date("Y-m-d");
$tla->save();
}