Skip to content
Snippets Groups Projects
Commit 19a85f2b authored by Holger's avatar Holger
Browse files

Fix missing type_id instance

parent 7993defb
No related branches found
No related tags found
1 merge request!6Extension in 'update_proposal' is internally created
......@@ -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']))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment