This commit is contained in:
David Rodenkirchen 2025-02-04 08:58:51 +01:00
parent 77c00bb011
commit e0e556b30a
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
import logging
from dataclasses import field, dataclass
from datetime import datetime
from typing import Optional, Union, Callable
from typing import Optional, Callable
from rio import Column, Component, event, TextStyle, Text, Spacer, PointerEvent, Button, Popup, Checkbox, Card, Row
from rio import Column, Component, event, TextStyle, Text, Spacer, PointerEvent, Button, Popup, Card, Row
from src.ez_lan_manager import ConfigurationService, CateringService, SeatingService, AccountingService
from src.ez_lan_manager.components.CateringManagementOrderDisplay import CateringManagementOrderDisplay

View File

@ -10,8 +10,8 @@ logger = logging.getLogger(__name__.split(".")[-1])
# Note for ToDo: rio.UserSettings are saved LOCALLY, do not just read a user_id here!
@dataclass(frozen=False)
class SessionStorage:
_user_id: Optional[int] = 28 # DEBUG: Put user ID here to skip login
_is_team_member: bool = True
_user_id: Optional[int] = None # DEBUG: Put user ID here to skip login
_is_team_member: bool = False
_notification_callbacks: dict[str, Callable] = field(default_factory=dict)
async def clear(self) -> None: