Fix typo in Puppet.all_with_custom_mxid
This commit is contained in:
@@ -372,7 +372,7 @@ class Puppet(CustomPuppetMixin):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def all_with_custom_mxid(cls) -> Iterable['Puppet']:
|
def all_with_custom_mxid(cls) -> Iterable['Puppet']:
|
||||||
return (cls.by_custom_mxid[puppet.mxid]
|
return (cls.by_custom_mxid[puppet.custom_mxid]
|
||||||
if puppet.custom_mxid in cls.by_custom_mxid
|
if puppet.custom_mxid in cls.by_custom_mxid
|
||||||
else cls.from_db(puppet)
|
else cls.from_db(puppet)
|
||||||
for puppet in DBPuppet.all_with_custom_mxid())
|
for puppet in DBPuppet.all_with_custom_mxid())
|
||||||
|
|||||||
Reference in New Issue
Block a user