mirror of
https://github.com/LucasVbr/LucasVbr.git
synced 2026-12-05 19:00:50 +00:00
Add more informations about me and animated emojis
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user