def get_links(self, attachments):
        links = ""
        for attachment in attachments:
            if attachment["objectType"] == "article" or attachment["objectType"] == "video":
                if links != "":
                    links += ", "
                links += attachment["url"]
        return links
Extract links.
dataset/ETHPy150Open GoogleDeveloperExperts/experts-app-backend/models/activity_post.py/ActivityPost.get_links