From 1aeca0c420fc4d12a225fe7ea68c05daa1eacc2a Mon Sep 17 00:00:00 2001 From: Chlupaty Date: Wed, 25 Mar 2026 20:56:06 +0100 Subject: [PATCH] Debugged ticket 8 for image_classifier.py --- beaky-backend/src/beaky/image_classifier/classifier.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/beaky-backend/src/beaky/image_classifier/classifier.py b/beaky-backend/src/beaky/image_classifier/classifier.py index 099760f..5defeab 100644 --- a/beaky-backend/src/beaky/image_classifier/classifier.py +++ b/beaky-backend/src/beaky/image_classifier/classifier.py @@ -148,11 +148,11 @@ def classify(text: str) -> list[Bet]: in_block = False # START trigger: Looks for 'dnes', 'zítra', or 'DD.MM.' - date_start_pattern = re.compile(r"(\d{1,2}\.\s*\d{1,2}\.|\b(dnes|zítra|zitra|včera|vcera)\b)", re.IGNORECASE) - + # date_start_pattern = re.compile(r"(\d{1,2}\.\s*\d{1,2}\.|\b(dnes|zítra|zitra|včera|vcera)\b)", re.IGNORECASE) + date_start_pattern = re.compile(r"(\d{1,2}\.\s*\d{1,2}\.|\b(dnes|zítra|zitra|včera|vcera))", re.IGNORECASE) # END trigger: Looks for standard Fortuna sport prefixes - sport_end_pattern = re.compile(r"^(Fotbal|Hokej|Tenis|Basketbal|Florbal|Volejbal|E-sport|Šipky)\s*/", re.IGNORECASE) - + # sport_end_pattern = re.compile(r"^(Fotbal|Hokej|Tenis|Basketbal|Florbal|Volejbal|E-sport|Šipky)\s*/", re.IGNORECASE) + sport_end_pattern = re.compile(r"(Fotbal|Hokej|Tenis|Basketbal|Florbal|Volejbal|E-sport|Šipky)\s*/", re.IGNORECASE) for ln in lines: logger.debug("Processing line: '%s'", ln) is_start = date_start_pattern.search(ln)