Skip to content

Commit

Permalink
Fix missing type_id instance
Browse files Browse the repository at this point in the history
  • Loading branch information
holgern committed May 2, 2021
1 parent 7993def commit 19a85f2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions beembase/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,12 @@ class UpdateProposalExtensions(Static_variant):
"""
def __init__(self, o):
if isinstance(o, dict) and 'type' in o and 'value' in o:
if o['type'] == "update_proposal_end_date":
type_id = 1
else:
type_id = ~0
if o['type'] == "update_proposal_end_date":
type_id = 1
else:
type_id = ~0
else:
type_id, data = o

if type_id == 1:
data = (UpdateProposalEndDate(o['value']))
Expand Down

0 comments on commit 19a85f2

Please sign in to comment.