From 19a85f2b5ec990f3170b17cc69dbcb3370acbb15 Mon Sep 17 00:00:00 2001 From: Holger Nahrstaedt <holgernahrstaedt@gmx.de> Date: Sun, 2 May 2021 12:44:02 +0200 Subject: [PATCH] Fix missing type_id instance --- beembase/objects.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/beembase/objects.py b/beembase/objects.py index 0b712c1d..2131fef8 100644 --- a/beembase/objects.py +++ b/beembase/objects.py @@ -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'])) -- GitLab