mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 05:57:16 +02:00
Merge pull request #3294 from iLPdev/patch-2
docs(Learning-Typeclasses): 📝 fix loop example
This commit is contained in:
commit
6b4be46602
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