Update 2026-01-20 20:47:44

This commit is contained in:
unknown
2026-01-20 20:47:45 +09:00
parent 9d5d2b8d99
commit c9db82d33e
193 changed files with 33876 additions and 5798 deletions

View File

@@ -83,6 +83,19 @@ def parse_txt_with_st(file_path: Path) -> dict:
return dict(data)
# ------------------------------------------------------------
# 슬롯 우선순위 설정
# ------------------------------------------------------------
# 환경변수에서 슬롯 우선순위 읽기 (예: "38,39,37,36,32,33,34,35,31,40")
slot_priority_str = os.getenv("GUID_SLOT_PRIORITY", "")
if slot_priority_str:
SLOT_PRIORITY = [s.strip() for s in slot_priority_str.split(",") if s.strip()]
print(f"[INFO] 사용자 지정 슬롯 우선순위: {SLOT_PRIORITY}")
else:
# 기본 우선순위 (10개)
SLOT_PRIORITY = ['38', '39', '37', '36', '32', '33', '34', '35', '31', '40']
print(f"[INFO] 기본 슬롯 우선순위 사용: {SLOT_PRIORITY}")
# ------------------------------------------------------------
# Load list of file basenames from guid_list.txt
# ------------------------------------------------------------
@@ -103,7 +116,43 @@ for name in file_names:
# rows.append({"S/T": name})
continue
rows.append(parse_txt_with_st(txt_path))
parsed_data = parse_txt_with_st(txt_path)
# 슬롯 우선순위에 따라 데이터 재정렬
reordered_data = OrderedDict()
reordered_data["S/T"] = parsed_data.get("S/T", "")
# 슬롯 데이터를 우선순위 순서대로 추가
# 슬롯 데이터를 우선순위 순서대로 추가하며 GUID 문자열 재구성
new_guid_list = []
for slot_num in SLOT_PRIORITY:
slot_key = f"Slot.{slot_num}"
val = parsed_data.get(slot_key)
# 데이터가 있으면 컬럼 추가
if val:
reordered_data[slot_key] = val
# GUID 재구성을 위한 수집 (Not Found 제외, 포맷 확인)
if val != "Not Found" and ":" in val:
# 예: 3825:F303:0085:07A6 -> 0x3825F303008507A6
clean_hex = val.replace(":", "").upper()
new_guid_list.append(f"0x{clean_hex}")
# 1순위: 재구성된 GUID (사용자가 지정한 슬롯 순서대로)
# 2순위: 파일에 있던 원본 GUID
if new_guid_list:
reordered_data["GUID"] = ";".join(new_guid_list)
elif "GUID" in parsed_data:
reordered_data["GUID"] = parsed_data["GUID"]
# 나머지 필드들 추가 (슬롯이 아닌 것들)
for key, value in parsed_data.items():
if key not in reordered_data:
reordered_data[key] = value
rows.append(dict(reordered_data))
# Build DataFrame (union of keys across all rows)
df = pd.DataFrame(rows)

View File

@@ -1,60 +1,3 @@
563HZC4
3B3HZC4
GCNCZC4
1DNCZC4
JDNCZC4
363HZC4
4QJCZC4
3NYCZC4
383HZC4
5CNCZC4
DRJCZC4
BFBHZC4
3DBHZC4
1DBHZC4
3Z5R0D4
JY5R0D4
2FNCZC4
1CNCZC4
6B3HZC4
CDNCZC4
573HZC4
HFBHZC4
8RJCZC4
JQJCZC4
BCNCZC4
6JNCZC4
9F6HZC4
GCBHZC4
106R0D4
7DBHZC4
1QJCZC4
CY5R0D4
D83HZC4
FZ5R0D4
7FBHZC4
906R0D4
FDNCZC4
GDNCZC4
393HZC4
BDNCZC4
4DNCZC4
DDNCZC4
HSJCZC4
583HZC4
HDNCZC4
7DNCZC4
983HZC4
F83HZC4
9QJCZC4
1TJCZC4
CBNCZC4
1JNCZC4
D53HZC4
G63HZC4
5DNCZC4
7SJCZC4
HXZCZC4
163HZC4
J63HZC4
7B3HZC4
1V48HG4
1T48HG4

View File

@@ -1,34 +1,2 @@
3G6HZC4
2CNCZC4
5DBHZC4
JHNCZC4
DX5R0D4
DHBHZC4
2RJCZC4
CFBHZC4
BZ5R0D4
JRJCZC4
6FBHZC4
5SJCZC4
JDBHZC4
CCBHZC4
6CNCZC4
JZ5R0D4
GHBHZC4
BDBHZC4
3CBHZC4
HX5R0D4
1Y5R0D4
9Z5R0D4
FCBHZC4
FHBHZC4
4G6HZC4
D73HZC4
806R0D4
6YZCZC4
4JNCZC4
5GBHZC4
6DNCZC4
8Y5R0D4
DCBHZC4
9FBHZC4
1BZ7HG4

View File

@@ -1,60 +1,3 @@
563HZC4
3B3HZC4
GCNCZC4
1DNCZC4
JDNCZC4
363HZC4
4QJCZC4
3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