Converions to string types.

This commit is contained in:
Kovitikus 2019-09-10 14:42:01 -04:00
parent c376fb5b57
commit ced0bfea59
2 changed files with 2 additions and 2 deletions

View file

@ -104,7 +104,7 @@ class Bot(DefaultAccount):
"boot:perm(Admin);msg:false();noidletimeout:true()"
self.locks.add(lockstring)
# set the basics of being a bot
script_key = f"{self.key}"
script_key = f"{str(self.key)}"
self.scripts.add(BotStarter, key=script_key)
self.is_bot = True

View file

@ -166,7 +166,7 @@ class AccountDBManager(TypedObjectManager, UserManager):
if callable(typeclass):
typeclass = f"{typeclass.__module__}.{typeclass.__name__}"
else:
typeclass = f"{typeclass}"
typeclass = f"{str(typeclass)}"
query["db_typeclass_path"] = typeclass
if exact:
matches = self.filter(**query)