feat: add demo players
This commit is contained in:
parent
6902ffdca6
commit
6378488fd0
27
cutt/demo.py
Normal file
27
cutt/demo.py
Normal 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)
|
||||||
|
]
|
Loading…
x
Reference in New Issue
Block a user