Compare commits
3 Commits
ca58f9d74c
...
21cce3d38e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21cce3d38e | ||
|
|
442d3f3e0a | ||
|
|
b5d7eca97c |
@ -14,7 +14,7 @@ This repository contains the code for the EZGG LAN Manager.
|
|||||||
|
|
||||||
### Step 1: Preparing Database
|
### Step 1: Preparing Database
|
||||||
|
|
||||||
To prepare the database, apply the SQL file located in `sql/create_database.sql` followed by `sql/tournament_patch.sql` to your database server. This is easily accomplished with the MYSQL Workbench, but it can be also done by pipeing the file into the mariadb-server executable.
|
To prepare the database, apply the SQL file located in `sql/create_database.sql` to your database server. This is easily accomplished with the MYSQL Workbench, but it can be also done by pipeing the file into the mariadb-server executable.
|
||||||
|
|
||||||
Optionally, you can now execute the script `create_demo_database_content.py`, found in `src/ezgg_lan_manager/helpers`. Be aware that it can be buggy sometimes, especially if you overwrite existing data.
|
Optionally, you can now execute the script `create_demo_database_content.py`, found in `src/ezgg_lan_manager/helpers`. Be aware that it can be buggy sometimes, especially if you overwrite existing data.
|
||||||
|
|
||||||
@ -43,4 +43,3 @@ FLUSH PRIVILEGES;
|
|||||||
```
|
```
|
||||||
3. Make sure to **NOT** use the default passwords!
|
3. Make sure to **NOT** use the default passwords!
|
||||||
4. Apply the `create_database.sql` when starting the MariaDB container for the first time.
|
4. Apply the `create_database.sql` when starting the MariaDB container for the first time.
|
||||||
5. Apply the `tournament_patch.sql` when starting the MariaDB container for the first time.
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ from from_root import from_root
|
|||||||
from rio import Column, Component, event, TextStyle, Text, Row, Image, Spacer, ProgressCircle, Button, Checkbox, ThemeContextSwitcher, Link, Revealer, PointerEventListener, \
|
from rio import Column, Component, event, TextStyle, Text, Row, Image, Spacer, ProgressCircle, Button, Checkbox, ThemeContextSwitcher, Link, Revealer, PointerEventListener, \
|
||||||
PointerEvent, Rectangle, Color
|
PointerEvent, Rectangle, Color
|
||||||
|
|
||||||
from src.ezgg_lan_manager import ConfigurationService, TournamentService, UserService, TicketingService
|
from src.ezgg_lan_manager import ConfigurationService, TournamentService, UserService
|
||||||
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
from src.ezgg_lan_manager.components.MainViewContentBox import MainViewContentBox
|
||||||
from src.ezgg_lan_manager.components.TournamentDetailsInfoRow import TournamentDetailsInfoRow
|
from src.ezgg_lan_manager.components.TournamentDetailsInfoRow import TournamentDetailsInfoRow
|
||||||
from src.ezgg_lan_manager.types.DateUtil import weekday_to_display_text
|
from src.ezgg_lan_manager.types.DateUtil import weekday_to_display_text
|
||||||
@ -53,11 +53,6 @@ class TournamentDetailsPage(Component):
|
|||||||
if not self.user:
|
if not self.user:
|
||||||
return
|
return
|
||||||
|
|
||||||
user_ticket = await self.session[TicketingService].get_user_ticket(self.user.user_id)
|
|
||||||
if user_ticket is None:
|
|
||||||
self.is_success = False
|
|
||||||
self.message = "Turnieranmeldung nur mit Ticket"
|
|
||||||
else:
|
|
||||||
try:
|
try:
|
||||||
await self.session[TournamentService].register_user_for_tournament(self.user.user_id, self.tournament.id)
|
await self.session[TournamentService].register_user_for_tournament(self.user.user_id, self.tournament.id)
|
||||||
self.is_success = True
|
self.is_success = True
|
||||||
|
|||||||
@ -45,7 +45,7 @@ class MailingService:
|
|||||||
return f"""
|
return f"""
|
||||||
Hallo {user.user_name},
|
Hallo {user.user_name},
|
||||||
|
|
||||||
deinem Account wurden {added_balance:.2f} € hinzugefügt. Dein neues Guthaben beträgt nun {total_balance:.2f} €.
|
deinem Account wurden {added_balance} € hinzugefügt. Dein neues Guthaben beträgt nun {total_balance} €.
|
||||||
|
|
||||||
Wenn du zu dieser Aufladung Fragen hast, stehen wir dir in unserem Discord Server oder per Mail an {self._configuration_service.get_lan_info().organizer_mail} zur Verfügung.
|
Wenn du zu dieser Aufladung Fragen hast, stehen wir dir in unserem Discord Server oder per Mail an {self._configuration_service.get_lan_info().organizer_mail} zur Verfügung.
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user