mirror of
https://github.com/aclist/dztui.git
synced 2026-11-03 08:32:10 +01:00
chore: drop unused code
This commit is contained in:
1 parent
107c672b1c
commit
891abcc049
4 files changed
+14
-86
No files matched your search
@@ -21,9 +21,10 @@ import dayzquery
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logging.getLogger("a2s").setLevel(logging.ERROR)
|
||||
|
||||
# TODO: confirm that patches from testing are incorporated here
|
||||
# particularly around malformed values. check commit log
|
||||
# particularly around malformed values in JSON response. check commit log
|
||||
|
||||
params = [
|
||||
r"\nor\1\map\chernarusplus\nor\1\map\sakhal\nor\1\map\enoch\empty\1\nor\1\map\namalsk", # noqa
|
||||
@@ -467,10 +468,12 @@ def query_playercount(record: Record) -> Optional[tuple[int]]:
|
||||
logger.critical(e)
|
||||
return None
|
||||
|
||||
|
||||
def query_by_ip(addr: str) -> Optional[dict]:
|
||||
record = short_ip_to_record(addr)
|
||||
return query_by_record(record)
|
||||
|
||||
|
||||
def query_by_record(record: Record) -> Optional[dict]:
|
||||
try:
|
||||
return query_direct(record.ip, record.qport)
|
||||
|
||||
Reference in new issue
Block a user