diff --git a/.auto-claude-status b/.auto-claude-status index b7c60e4..2497024 100644 --- a/.auto-claude-status +++ b/.auto-claude-status @@ -3,23 +3,23 @@ "spec": "008-dziala-pobieranie-danych-z-gbp-ale-czesciowo-nadal", "state": "building", "subtasks": { - "completed": 2, + "completed": 4, "total": 13, "in_progress": 1, "failed": 0 }, "phase": { - "current": "Google Places API Update", + "current": "GBP Audit Service Update", "id": null, - "total": 3 + "total": 2 }, "workers": { "active": 0, "max": 1 }, "session": { - "number": 3, + "number": 5, "started_at": "2026-01-08T22:56:12.625328" }, - "last_update": "2026-01-08T22:58:22.515043" + "last_update": "2026-01-08T23:00:49.446090" } \ No newline at end of file diff --git a/gbp_audit_service.py b/gbp_audit_service.py index dd26919..3be4b16 100644 --- a/gbp_audit_service.py +++ b/gbp_audit_service.py @@ -421,21 +421,12 @@ class GBPAuditService: """Check opening hours presence""" max_score = FIELD_WEIGHTS['hours'] - # Hours are typically not stored in Company model directly - # We would need to check Google Business data or a dedicated field - # For now, we check if there's any indicator of hours being set - - # This is a placeholder - in production, you'd check: - # 1. Google Business API data - # 2. Scraped hours from website - # 3. Dedicated hours field in database - - # Check if we have any business status from Google - if analysis and analysis.google_business_status: + # Check if we have opening hours from Google Business Profile + if analysis and analysis.google_opening_hours: return FieldStatus( field_name='hours', status='complete', - value='Godziny dostępne w Google', + value=analysis.google_opening_hours, score=max_score, max_score=max_score )