def count_unique_tags()

in perf_dashboard/posts_stats.py [0:0]


def count_unique_tags(data):
    flattened_tag_list = [tag for tag_list in data for tag in tag_list]
    tag_count = Counter(flattened_tag_list)

    # Add current timestamp to the rows
    date_time = datetime.datetime.now()
    time_tag_count = [(date_time,) + item for item in tag_count.items()]

    return time_tag_count