Add more informations about me and animated emojis

This commit is contained in:
Lucàs
2024-01-13 10:46:39 +01:00
parent c1afbe8e02
commit 6e15d27142
9 changed files with 50 additions and 276 deletions
+5 -8
View File
@@ -1,11 +1,8 @@
from src.model.social import Social
class SocialList:
socials: list[Social]
def __init__(self, socials: list):
self.socials = [Social(social.get("name"), social.get("url")) for social in socials]
def __str__(self) -> str:
return "\n".join([str(social) for social in self.socials])
def social_list(socials: list) -> dict[str, str]:
socials: dict[str, str] = {social.get("name"): str(Social(social.get("name"), social.get("url"))) for social in
socials}
socials["all"] = "\n".join([str(social) for social in socials.values()])
return socials