update the sync

This commit is contained in:
Hossein 2025-08-11 23:38:53 +03:30
parent 6b172b4fc0
commit d46d322210

View File

@ -39,8 +39,8 @@ def parse_table_data(file_path: str) -> List[Tuple[str, str]]:
continue
# Match lines with: <id> <account> <ig_post_id> ...
# Pattern: whitespace + number + whitespace + account + whitespace + ig_post_id (with optional suffix)
m = re.search(r"\s*(\d+)\s+([A-Za-z0-9._]+)\s+(\d+)(?:_\d+)?\s", line)
# Pattern: whitespace/tabs + number + whitespace/tabs + account + whitespace/tabs + ig_post_id (with optional suffix)
m = re.search(r"\s*(\d+)\s+([A-Za-z0-9._]+)\s+(\d+)(?:_\d+)?", line)
if m:
_, account, ig_id = m.groups()
rows.append((account, ig_id))