feat: add demo players

This commit is contained in:
julius 2025-05-08 07:05:44 +02:00
parent 6902ffdca6
commit 6378488fd0
Signed by: julius
GPG Key ID: C80A63E6A5FD7092

27
cutt/demo.py Normal file
View File

@ -0,0 +1,27 @@
import random
from cutt.db import Player
names = [
"August",
"Beate",
"Ceasar",
"Daedalus",
"Elli",
"Ford P.",
"Gabriel",
"Hugo",
"Ivar Johansson",
"Jürgen Gordon Malinauskas",
]
demo_players = [
Player.model_validate(
{
"id": i,
"display_name": name,
"username": name.lower().replace(" ", "").replace(".", ""),
"number": str(random.randint(0, 100)),
"email": name.lower().replace(" ", "").replace(".", "") + "@example.org",
}
)
for i, name in enumerate(names)
]