Commit 9f948fef authored by Pelayo Torres's avatar Pelayo Torres
Browse files

Events supportedfeatures logic

parent d4ce7132
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -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,