Add Python 3.11 compatibility #5
@@ -20,7 +20,8 @@ class SeatPixel(Component):
|
||||
self.associated_user = await self.seat.user.fetch()
|
||||
|
||||
async def on_press(self, _: PointerEvent) -> None:
|
||||
self.session.navigate_to(f"./seat-info?seat_id={self.seat_id.replace("\n", "")}")
|
||||
seat_id = self.seat_id.replace("\n", "")
|
||||
self.session.navigate_to(f"./seat-info?seat_id={seat_id}")
|
||||
|
||||
def determine_color(self) -> Color:
|
||||
if self.seat is not None:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from _sha2 import sha256
|
||||
from hashlib import sha256
|
||||
from random import choices
|
||||
from typing import Any, Optional
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ class TransactionRow(Component):
|
||||
return Rectangle(
|
||||
content=Row(
|
||||
Text(
|
||||
f"{self.transaction_time.strftime("%d.%m.%y")} /",
|
||||
f"{self.transaction_time.strftime('%d.%m.%y')} /",
|
||||
justify="left",
|
||||
font_size=0.8,
|
||||
margin_left=0.5,
|
||||
|
||||
Reference in New Issue
Block a user