Эх сурвалжийг харах

Fix Puppet.get_mxid_from_id parameter name

Closes #42
Tulir Asokan 3 жил өмнө
parent
commit
9ce149794e

+ 2 - 2
mautrix_instagram/puppet.py

@@ -217,8 +217,8 @@ class Puppet(DBPuppet, BasePuppet):
         return cls.mxid_template.parse(mxid)
 
     @classmethod
-    def get_mxid_from_id(cls, twid: int) -> UserID:
-        return UserID(cls.mxid_template.format_full(twid))
+    def get_mxid_from_id(cls, pk: int) -> UserID:
+        return UserID(cls.mxid_template.format_full(pk))
 
     @classmethod
     @async_getter_lock