Homepage/ezgg_website/services/database_service.py
2024-08-11 23:21:06 +02:00

143 lines
8.9 KiB
Python

import rio
from from_root import from_root
from ..models import SocialPlatform, SocialLink, MemberInfo
# @ToDo: Make real database service at some point
class DatabaseService:
def __init__(self):
pass
def get_members(self) -> list[MemberInfo]:
return [
MemberInfo(
picture_path=from_root("ezgg_website/assets/member_pictures/david.png"),
name="David \"Typhus\" R.",
position="1. Vorsitzender",
entry_date="29.10.2023",
socials=[
SocialLink(SocialPlatform.MAIL, "mailto://vorstand@ezgg-ev.de"),
SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/id/originaltyphus"),
SocialLink(SocialPlatform.DISCORD, "https://discordapp.com/users/384329938292965382"),
SocialLink(SocialPlatform.FACEBOOK, "https://www.facebook.com/david.kaiser.5661"),
SocialLink(SocialPlatform.GIT, "https://git.jdrodenkirchen.de/drodenkirchen")
]
), MemberInfo(
picture_path=from_root("ezgg_website/assets/member_pictures/jule.png"),
name="Julia \"Ravenchild\" A.",
position="2. Vorsitzende",
entry_date="29.10.2023",
socials=[
SocialLink(SocialPlatform.MAIL, "mailto://vorstand@ezgg-ev.de"),
SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/profiles/76561198089911312"),
SocialLink(SocialPlatform.INSTAGRAM, "https://www.instagram.com/j.u.l.e.1995")
]
), MemberInfo(
picture_path=from_root("ezgg_website/assets/member_pictures/jessy.png"),
name="Jessy \"JessySixx\" R.",
position="Schatzmeisterin",
entry_date="29.10.2023",
socials=[
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",
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",
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",
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",
socials=[
SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/profiles/76561198299462425"),
]
), MemberInfo(
picture_path=from_root("ezgg_website/assets/member_pictures/imi.png"),
name="Imanuel \"ImiKoD\" B.",
position="Mitglied in Probezeit",
entry_date="18.07.2024",
socials=[
SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/id/ImiKoD/"),
SocialLink(SocialPlatform.FACEBOOK, "https://www.facebook.com/imanuel.blocher")
]
), MemberInfo(
picture_path=from_root("ezgg_website/assets/member_pictures/fips.png"),
name="Jan Phillip \"Medusaman\" N.",
position="Mitglied in Probezeit",
entry_date="20.07.2024",
socials=[SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/profiles/76561198033110015")]
), MemberInfo(
picture_path=from_root("ezgg_website/assets/member_pictures/anon.png"),
name="Jens \"dusker\" G.",
position="Mitglied in Probezeit",
entry_date="09.08.2024",
socials=[SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/profiles/76561197960863240")]
), MemberInfo(
picture_path=from_root("ezgg_website/assets/member_pictures/anon.png"),
name="Stefan \"lenny\" R.",
position="Mitglied in Probezeit",
entry_date="09.08.2024",
socials=[SocialLink(SocialPlatform.STEAM, "https://steamcommunity.com/profiles/76561197973187407")]
)
]
def get_picture_paths(self) -> list[rio.URL]:
return [
# BK-LAN 18
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=c345a1b8-0c74-4d8f-8f3d-c747d04c2c12&photo_nr=1"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=c345a1b8-0c74-4d8f-8f3d-c747d04c2c12&photo_nr=2"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=c345a1b8-0c74-4d8f-8f3d-c747d04c2c12&photo_nr=3"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=c345a1b8-0c74-4d8f-8f3d-c747d04c2c12&photo_nr=4"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=c345a1b8-0c74-4d8f-8f3d-c747d04c2c12&photo_nr=5"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=c345a1b8-0c74-4d8f-8f3d-c747d04c2c12&photo_nr=6"),
# BL 46
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=4abbc55b-fc19-445a-9f84-b07c8d4ced12&photo_nr=1"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=4abbc55b-fc19-445a-9f84-b07c8d4ced12&photo_nr=2"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=4abbc55b-fc19-445a-9f84-b07c8d4ced12&photo_nr=3"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=4abbc55b-fc19-445a-9f84-b07c8d4ced12&photo_nr=4"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=4abbc55b-fc19-445a-9f84-b07c8d4ced12&photo_nr=5"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=4abbc55b-fc19-445a-9f84-b07c8d4ced12&photo_nr=6"),
# BL 45
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=d4c862f1-65cd-4051-9525-8be408ef80a8&photo_nr=1"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=d4c862f1-65cd-4051-9525-8be408ef80a8&photo_nr=2"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=d4c862f1-65cd-4051-9525-8be408ef80a8&photo_nr=3"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=d4c862f1-65cd-4051-9525-8be408ef80a8&photo_nr=4"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=d4c862f1-65cd-4051-9525-8be408ef80a8&photo_nr=5"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=d4c862f1-65cd-4051-9525-8be408ef80a8&photo_nr=6"),
# BL 42
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=235bf57f-c65c-4b5f-8029-061775eeec45&photo_nr=1"),
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=235bf57f-c65c-4b5f-8029-061775eeec45&photo_nr=2"),
# Fieste del Krümel
rio.URL("https://verwaltung.ezgg-ev.de/adm_program/modules/photos/photo_show.php?photo_uuid=5177ce6f-f8c6-49a2-9bb0-4e9f606ecd2b&photo_nr=1")
]