Loading services/TS29222_CAPIF_Events_API/capif_events/core/events_apis.py +0 −2 Original line number Diff line number Diff line Loading @@ -224,13 +224,11 @@ class EventSubscriptionsOperations(Resource): return not_found_error(detail="Event subscription not exist", cause="Event API subscription id not found") if EventSubscription.return_supp_feat_dict(eventdescription.get("supported_features"))["EnhancedEventReport"]: current_app.logger.debug(event_subscription) if event_subscription.events and event_subscription.event_filters: result = self.__check_event_filters(event_subscription.events, clean_empty(event_subscription.to_dict()["event_filters"])) elif event_subscription.events and event_subscription.event_filters is None and eventdescription.get("event_filters", None): result = self.__check_event_filters(event_subscription.events, eventdescription.get("event_filters")) elif event_subscription.events is None and event_subscription.event_filters: current_app.logger.debug(clean_empty(event_subscription.to_dict()["event_filters"])) result = self.__check_event_filters(eventdescription.get("events"), clean_empty(event_subscription.to_dict()["event_filters"])) if isinstance(result, Response): Loading Loading
services/TS29222_CAPIF_Events_API/capif_events/core/events_apis.py +0 −2 Original line number Diff line number Diff line Loading @@ -224,13 +224,11 @@ class EventSubscriptionsOperations(Resource): return not_found_error(detail="Event subscription not exist", cause="Event API subscription id not found") if EventSubscription.return_supp_feat_dict(eventdescription.get("supported_features"))["EnhancedEventReport"]: current_app.logger.debug(event_subscription) if event_subscription.events and event_subscription.event_filters: result = self.__check_event_filters(event_subscription.events, clean_empty(event_subscription.to_dict()["event_filters"])) elif event_subscription.events and event_subscription.event_filters is None and eventdescription.get("event_filters", None): result = self.__check_event_filters(event_subscription.events, eventdescription.get("event_filters")) elif event_subscription.events is None and event_subscription.event_filters: current_app.logger.debug(clean_empty(event_subscription.to_dict()["event_filters"])) result = self.__check_event_filters(eventdescription.get("events"), clean_empty(event_subscription.to_dict()["event_filters"])) if isinstance(result, Response): Loading