mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
docs(Learning-Typeclasses): 📝 fix .at_object_creation example code
This commit is contained in:
parent
fe5f2abb63
commit
0f30b4bb5c
1 changed files with 1 additions and 1 deletions
|
|
@ -547,7 +547,7 @@ A python _for-loop_ allows us to loop over something. Above, we made a _list_ of
|
|||
For our list, we want to loop over all Characters, and want to call `.at_object_creation` on each. This is how this is done (still in python multi-line mode):
|
||||
|
||||
> from typeclasses.characters import Character
|
||||
> for char in Character.objects.all()
|
||||
> for char in Character.objects.all():
|
||||
> char.at_object_creation()
|
||||
|
||||
```{sidebar} Database queries
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue