[SPRINT-V1][B] Фикс парсинга сводки гигиены под новый формат отчёта
This commit is contained in:
1 parent
8e6655e021
commit
4e60a4e214
1 file changed
+1
-1
@@ -31,7 +31,7 @@ def main():
|
||||
print("нет отчёта:", e)
|
||||
return 1
|
||||
|
||||
m = re.search(r"Найдено: \*\*(\d+)\*\*", text)
|
||||
m = re.search(r"(?:находок|Найдено):\s*\*\*(\d+)\*\*", text, re.I)
|
||||
total = m.group(1) if m else "?"
|
||||
m2 = re.search(r"· high: (\d+) · medium: (\d+) · low: (\d+) · info: (\d+)", text)
|
||||
counts = m2.groups() if m2 else ("?", "?", "?", "?")
|
||||
|
||||
Reference in new issue
Block a user