yumeng 1 روز پیش
والد
کامیت
b03d4df65e
1فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 3 4
      scripts/honor_backfill_oaid.py

+ 3 - 4
scripts/honor_backfill_oaid.py

@@ -5,7 +5,6 @@ import hashlib
 import json
 import re
 import socket
-from dataclasses import dataclass
 from pathlib import Path
 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}]+)")
 
 
-@dataclass
 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: