Fixed string conversions.
This commit is contained in:
parent
ced0bfea59
commit
8dcd1bb286
2 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ class Bot(DefaultAccount):
|
||||||
"boot:perm(Admin);msg:false();noidletimeout:true()"
|
"boot:perm(Admin);msg:false();noidletimeout:true()"
|
||||||
self.locks.add(lockstring)
|
self.locks.add(lockstring)
|
||||||
# set the basics of being a bot
|
# set the basics of being a bot
|
||||||
script_key = f"{str(self.key)}"
|
script_key = str(self.key)
|
||||||
self.scripts.add(BotStarter, key=script_key)
|
self.scripts.add(BotStarter, key=script_key)
|
||||||
self.is_bot = True
|
self.is_bot = True
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,7 @@ class AccountDBManager(TypedObjectManager, UserManager):
|
||||||
if callable(typeclass):
|
if callable(typeclass):
|
||||||
typeclass = f"{typeclass.__module__}.{typeclass.__name__}"
|
typeclass = f"{typeclass.__module__}.{typeclass.__name__}"
|
||||||
else:
|
else:
|
||||||
typeclass = f"{str(typeclass)}"
|
typeclass = fstr(typeclass)
|
||||||
query["db_typeclass_path"] = typeclass
|
query["db_typeclass_path"] = typeclass
|
||||||
if exact:
|
if exact:
|
||||||
matches = self.filter(**query)
|
matches = self.filter(**query)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue