From 468d0812d9d02db7b2316622379e6fca55df4607 Mon Sep 17 00:00:00 2001 From: Griatch Date: Thu, 27 Jun 2024 17:27:36 +0200 Subject: [PATCH] Reword weird sentence in beginner search tutorial. Resolve #3558 --- .../Part1/Beginner-Tutorial-Searching-Things.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Searching-Things.md b/docs/source/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Searching-Things.md index e08a7d1a00..72a9709c75 100644 --- a/docs/source/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Searching-Things.md +++ b/docs/source/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Searching-Things.md @@ -135,9 +135,9 @@ Above we find first the rose and then an Account. You can try both using `py`: > py evennia.search_account("YourName")[0] -In the example above we used `[0]` to only get the first match of the queryset, which in this case gives us the rose and your Account respectively. Note that if you don't find any matches, using `[0]` like this leads to an error, so it's mostly useful for debugging. +The `search_object/account` returns all matches. We use `[0]` to only get the first match of the queryset, which in this case gives us the rose and your Account respectively. Note that if you don't find any matches, using `[0]` like this leads to an error, so it's mostly useful for debugging. -If you you really want all matches to the search parameters you specify. In other situations, having zero or more than one match is a sign of a problem and you need to handle this case yourself. This is too detailed for testing out just with `py`, but good to know if you want to make your own search methods: +In other situations, having zero or more than one match is a sign of a problem and you need to handle this case yourself. This is too detailed for testing out just with `py`, but good to know if you want to make your own search methods: ```python the_one_ring = evennia.search_object("The one Ring")