|
@@ -5,7 +5,6 @@ import hashlib
|
|
|
import json
|
|
import json
|
|
|
import re
|
|
import re
|
|
|
import socket
|
|
import socket
|
|
|
-from dataclasses import dataclass
|
|
|
|
|
from pathlib import Path
|
|
from pathlib import Path
|
|
|
from typing import Dict, Iterable, List, Optional, Tuple
|
|
from typing import Dict, Iterable, List, Optional, Tuple
|
|
|
|
|
|
|
@@ -17,10 +16,10 @@ TRACK_ID_RE = re.compile(r"trackId=([^,\s}]+)")
|
|
|
OAID_RE = re.compile(r"oaid=([^,\s}]+)")
|
|
OAID_RE = re.compile(r"oaid=([^,\s}]+)")
|
|
|
|
|
|
|
|
|
|
|
|
|
-@dataclass
|
|
|
|
|
class LogEntry:
|
|
class LogEntry:
|
|
|
- trace_id: str
|
|
|
|
|
- oaid: str
|
|
|
|
|
|
|
+ def __init__(self, trace_id: str, oaid: str):
|
|
|
|
|
+ self.trace_id = trace_id
|
|
|
|
|
+ self.oaid = oaid
|
|
|
|
|
|
|
|
|
|
|
|
|
def md5_hex(value: str) -> str:
|
|
def md5_hex(value: str) -> str:
|