Loading services/TS29222_CAPIF_Publish_Service_API/published_apis/models/service_api_description.py +2 −1 Original line number Original line Diff line number Diff line Loading @@ -104,7 +104,8 @@ class ServiceAPIDescription(Model): # current_app.logger.info(supp_feat_in_hex) # current_app.logger.info(supp_feat_in_hex) supp_feat_in_hex = supp_feat_in_hex & capif_supp_feat supp_feat_in_hex = supp_feat_in_hex & capif_supp_feat supp_feat_in_bin = bin(supp_feat_in_hex << (len(supp_feat) * 4 - len(bin(supp_feat_in_hex)[2:])))[2:] # supp_feat_in_bin = bin(supp_feat_in_hex << (len(supp_feat) * 4 - len(bin(supp_feat_in_hex)[2:])))[2:] supp_feat_in_bin = bin(supp_feat_in_hex)[2:].zfill(len(supp_feat) * 4) return { return { "VendorExt": True if supp_feat_in_bin[0] == "1" else False, "VendorExt": True if supp_feat_in_bin[0] == "1" else False, Loading Loading
services/TS29222_CAPIF_Publish_Service_API/published_apis/models/service_api_description.py +2 −1 Original line number Original line Diff line number Diff line Loading @@ -104,7 +104,8 @@ class ServiceAPIDescription(Model): # current_app.logger.info(supp_feat_in_hex) # current_app.logger.info(supp_feat_in_hex) supp_feat_in_hex = supp_feat_in_hex & capif_supp_feat supp_feat_in_hex = supp_feat_in_hex & capif_supp_feat supp_feat_in_bin = bin(supp_feat_in_hex << (len(supp_feat) * 4 - len(bin(supp_feat_in_hex)[2:])))[2:] # supp_feat_in_bin = bin(supp_feat_in_hex << (len(supp_feat) * 4 - len(bin(supp_feat_in_hex)[2:])))[2:] supp_feat_in_bin = bin(supp_feat_in_hex)[2:].zfill(len(supp_feat) * 4) return { return { "VendorExt": True if supp_feat_in_bin[0] == "1" else False, "VendorExt": True if supp_feat_in_bin[0] == "1" else False, Loading