fix: исправлено регулярное выражение парсинга имен файлов почты
This commit is contained in:
parent
cbe055e553
commit
3f426b8f3c
3 changed files with 4 additions and 3 deletions
|
|
@ -1 +1 @@
|
|||
2026-06-26 02:00:58
|
||||
2026-06-26 21:41:52
|
||||
|
|
@ -100,9 +100,9 @@ def update_email_audit_stats():
|
|||
|
||||
stats = {}
|
||||
for f in all_folder.glob("*.pdf"):
|
||||
match = re.match(r'(\d{4}-\d{2}-\d{2})_([^_]+)_(.*)', f.stem)
|
||||
match = re.match(r'([a-zA-Z0-9.-]+)_(\d{4}-\d{2}-\d{2})_(.*)', f.stem)
|
||||
if match:
|
||||
dt_str, domain, subject = match.group(1), match.group(2), match.group(3)
|
||||
domain, dt_str, subject = match.group(1), match.group(2), match.group(3)
|
||||
if domain not in stats:
|
||||
stats[domain] = {"inbound": 0, "outbound": 0, "last_date": dt_str}
|
||||
else:
|
||||
|
|
|
|||
1
pipeline_status.json
Normal file
1
pipeline_status.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"status": "success", "step": "\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e", "updated_at": "2026-06-26 21:41:52", "new_emails": 1, "total_emails": 0, "pdf_size_mb": 180.84}
|
||||
Loading…
Reference in a new issue