def get_notification_data(self):
        notification_data = dict()

        if self.track_unseen and self.track_unread:
            unseen_count, unread_count = self.feed_markers.count('unseen', 'unread')
            notification_data['unseen_count'] = unseen_count
            notification_data['unread_count'] = unread_count
        elif self.track_unseen:
            unseen_count = self.feed_markers.count('unseen')
            notification_data['unseen_count'] = unseen_count
        elif self.track_unread:
            unread_count = self.feed_markers.count('unread')
            notification_data['unread_count'] = unread_count

        return notification_data
Save data, metadata and return an id
dataset/ETHPy150Open tschellenbach/Stream-Framework/stream_framework/feeds/notification_feed/base.py/BaseNotificationFeed.get_notification_data--crossover with--dataset/ETHPy150Open Net-ng/kansha/kansha/services/assetsmanager.py/AssetsManager.save