mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 20:47:17 +02:00
Updated manager.py with f-strings.
This commit is contained in:
parent
14401ae2f2
commit
ef9653a04c
1 changed files with 2 additions and 2 deletions
|
|
@ -164,9 +164,9 @@ class AccountDBManager(TypedObjectManager, UserManager):
|
|||
if typeclass:
|
||||
# we accept both strings and actual typeclasses
|
||||
if callable(typeclass):
|
||||
typeclass = "%s.%s" % (typeclass.__module__, typeclass.__name__)
|
||||
typeclass = f"{typeclass.__module__}.{typeclass.__name__}"
|
||||
else:
|
||||
typeclass = "%s" % typeclass
|
||||
typeclass = f"{typeclass}"
|
||||
query["db_typeclass_path"] = typeclass
|
||||
if exact:
|
||||
matches = self.filter(**query)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue