Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b31a7d6944 | |||
| 64cf89e0bb |
@@ -20,9 +20,8 @@ class SeatPixel(Component):
|
|||||||
self.associated_user = await self.seat.user.fetch()
|
self.associated_user = await self.seat.user.fetch()
|
||||||
|
|
||||||
async def on_press(self, _: PointerEvent) -> None:
|
async def on_press(self, _: PointerEvent) -> None:
|
||||||
seat_id = self.seat_id.replace("\n", "")
|
self.session.navigate_to(f"./seat-info?seat_id={self.seat_id.replace("\n", "")}")
|
||||||
self.session.navigate_to(f"./seat-info?seat_id={seat_id}")
|
|
||||||
|
|
||||||
def determine_color(self) -> Color:
|
def determine_color(self) -> Color:
|
||||||
if self.seat is not None:
|
if self.seat is not None:
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from hashlib import sha256
|
from _sha2 import sha256
|
||||||
from random import choices
|
from random import choices
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class TransactionRow(Component):
|
|||||||
return Rectangle(
|
return Rectangle(
|
||||||
content=Row(
|
content=Row(
|
||||||
Text(
|
Text(
|
||||||
f"{self.transaction_time.strftime('%d.%m.%y')} /",
|
f"{self.transaction_time.strftime("%d.%m.%y")} /",
|
||||||
justify="left",
|
justify="left",
|
||||||
font_size=0.8,
|
font_size=0.8,
|
||||||
margin_left=0.5,
|
margin_left=0.5,
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class ConfigurationService:
|
|||||||
secret=self._config["paypal"]["secret"]
|
secret=self._config["paypal"]["secret"]
|
||||||
)
|
)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
logger.fatal("Error loading PayPalConfiguration, exiting...")
|
logger.fatal("Error loading DatabaseConfiguration, exiting...")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
def get_ticket_info(self) -> tuple[TicketInfo, ...]:
|
def get_ticket_info(self) -> tuple[TicketInfo, ...]:
|
||||||
|
|||||||
Reference in New Issue
Block a user