mirror of
https://github.com/evennia/evennia.git
synced 2026-03-19 22:36:31 +01:00
Cleaned up tests to use newly-renamed Account hooks for add/remove characters.
This commit is contained in:
parent
f782cd8fc8
commit
4b80b200d8
20 changed files with 774 additions and 50 deletions
|
|
@ -198,8 +198,8 @@ def index(request):
|
|||
def index(request):
|
||||
"""The 'index' view."""
|
||||
user = request.user
|
||||
if not user.is_anonymous() and user.db._playable_characters:
|
||||
character = user.db._playable_characters[0]
|
||||
if not user.is_anonymous() and user.characters:
|
||||
character = user.characters[0]
|
||||
```
|
||||
|
||||
In this second case, it will select the first character of the account.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue