Loading services/TS29222_CAPIF_Events_API/capif_events/models/event_subscription.py +2 −1 Original line number Original line Diff line number Diff line Loading @@ -70,8 +70,9 @@ class EventSubscription(Model): @classmethod @classmethod def return_supp_feat_dict(cls, supp_feat): def return_supp_feat_dict(cls, supp_feat): TOTAL_FEATURES=4 supp_feat_in_hex = int(supp_feat, 16) supp_feat_in_hex = int(supp_feat, 16) supp_feat_in_bin = bin(supp_feat_in_hex)[2:] supp_feat_in_bin = bin(supp_feat_in_hex)[2:].zfill(TOTAL_FEATURES)[::-1] return { return { "NotificationTestEvent": True if supp_feat_in_bin[0] == "1" else False, "NotificationTestEvent": True if supp_feat_in_bin[0] == "1" else False, Loading Loading
services/TS29222_CAPIF_Events_API/capif_events/models/event_subscription.py +2 −1 Original line number Original line Diff line number Diff line Loading @@ -70,8 +70,9 @@ class EventSubscription(Model): @classmethod @classmethod def return_supp_feat_dict(cls, supp_feat): def return_supp_feat_dict(cls, supp_feat): TOTAL_FEATURES=4 supp_feat_in_hex = int(supp_feat, 16) supp_feat_in_hex = int(supp_feat, 16) supp_feat_in_bin = bin(supp_feat_in_hex)[2:] supp_feat_in_bin = bin(supp_feat_in_hex)[2:].zfill(TOTAL_FEATURES)[::-1] return { return { "NotificationTestEvent": True if supp_feat_in_bin[0] == "1" else False, "NotificationTestEvent": True if supp_feat_in_bin[0] == "1" else False, Loading