From 1da97989102f9551fa812923e2c0a28de66e62a3 Mon Sep 17 00:00:00 2001 From: David Rodenkirchen Date: Thu, 6 Jun 2024 21:38:26 +0200 Subject: [PATCH] MOAR --- ezgg_website/components/member_card.py | 2 +- ezgg_website/services/database_service.py | 26 ++++++++++++++++++----- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/ezgg_website/components/member_card.py b/ezgg_website/components/member_card.py index be14cb8..9a6a353 100644 --- a/ezgg_website/components/member_card.py +++ b/ezgg_website/components/member_card.py @@ -17,7 +17,7 @@ class MemberCard(rio.Component): social_links_grid ) - for i, social_link in enumerate(self.info.socials): + for i, social_link in enumerate(sorted(self.info.socials, key=lambda s: s.platform.value)): social_links_grid.add( rio.Link( rio.Icon(SOCIAL_PLATFORM_ICON_MAP[social_link.platform], height=1.3, width=1.3, fill="primary"), diff --git a/ezgg_website/services/database_service.py b/ezgg_website/services/database_service.py index be96c3e..d6dbe5d 100644 --- a/ezgg_website/services/database_service.py +++ b/ezgg_website/services/database_service.py @@ -39,28 +39,44 @@ class DatabaseService: position="Schatzmeisterin", entry_date="29.10.2023", socials=[ - SocialLink(SocialPlatform.TWITCH, "https://twitch.tv/jessysixx88/home") + SocialLink(SocialPlatform.MAIL, "mailto://jessysixx@ezgg-ev.de"), + SocialLink(SocialPlatform.TWITCH, "https://twitch.tv/jessysixx88/home"), + SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/id/JessySixx"), + SocialLink(SocialPlatform.INSTAGRAM, "https://www.instagram.com/jessykrumel/"), + SocialLink(SocialPlatform.FACEBOOK, "https://www.facebook.com/krumelcore.untherapierbar") ] ), MemberInfo( picture_path=from_root("ezgg_website/assets/member_pictures/tim.png"), name="Tim \"Matschwicht\" B.", position="Mitglied", - entry_date="29.10.2023" + entry_date="29.10.2023", + socials=[ + SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/profiles/76561198247114792"), + ] ), MemberInfo( picture_path=from_root("ezgg_website/assets/member_pictures/dennis.png"), name="Dennis \"Goodman\" P.", position="Mitglied", - entry_date="29.10.2023" + entry_date="29.10.2023", + socials=[ + SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/profiles/76561198160425987"), + ] ), MemberInfo( picture_path=from_root("ezgg_website/assets/member_pictures/tom.png"), name="Tom \"Tcprod\" C.", position="Mitglied", - entry_date="29.10.2023" + entry_date="29.10.2023", + socials=[ + SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/profiles/76561198118936378"), + ] ), MemberInfo( picture_path=from_root("ezgg_website/assets/member_pictures/chris.png"), name="Chris \"Meliodas\" K.", position="Mitglied", - entry_date="29.10.2023" + entry_date="29.10.2023", + socials=[ + SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/profiles/76561198299462425"), + ] ) ]