Enforce non-optional ktid and kt_receiver for portal DB objects

This commit is contained in:
Andrew Ferrazzutti 2022-03-09 02:28:41 -05:00
parent f8a50f1201
commit 00c0090c19
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class Portal:
data = {**row}
ktid = data.pop("ktid")
kt_receiver = data.pop("kt_receiver")
return cls(**data, ktid=Long.from_optional_bytes(ktid), kt_receiver=Long.from_optional_bytes(kt_receiver))
return cls(**data, ktid=Long.from_bytes(ktid), kt_receiver=Long.from_bytes(kt_receiver))
@classmethod
def _from_optional_row(cls, row: Record | None) -> Portal | None: