mirror of
https://github.com/aclist/dztui.git
synced 2026-11-10 12:00:38 +01:00
chore: add placeholder for row struct
This commit is contained in:
1 parent
bfe9b9d147
commit
8fb3462f35
1 file changed
+17
@@ -1,5 +1,6 @@
|
||||
import re
|
||||
|
||||
from dataclasses import dataclass
|
||||
from typing import Any, TYPE_CHECKING, Union
|
||||
|
||||
from dzgui.const.enum import FilterMode
|
||||
@@ -16,6 +17,22 @@ DAY_REG = r"([0][6-9]|[1][0-7])"
|
||||
NIGHT_REG = r"([0][0-5]|[1][8-9]|[2][0-3])"
|
||||
|
||||
|
||||
@dataclass(slots=True, frozen=True)
|
||||
class ServerRow:
|
||||
name: str
|
||||
mapname: str
|
||||
view: str
|
||||
time: str
|
||||
players: int
|
||||
max_players: int
|
||||
queue: int
|
||||
ip: str
|
||||
qport: int
|
||||
ping: str
|
||||
provider: str
|
||||
modded: bool
|
||||
|
||||
|
||||
class ProxyModelManager:
|
||||
"""
|
||||
Manages access to cached FastInsertListStore resources and
|
||||
|
||||
Reference in new issue
Block a user