auto-claude: subtask-2-3 - Update save_audit_result() to store google_opening_hours and google_photos_count
- Added google_opening_hours and google_photos_count to INSERT column list - Added corresponding placeholders to VALUES list - Added to ON CONFLICT UPDATE SET clause - Added to parameter dictionary reading from google_reviews result Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
5f2cfa06fd
commit
aacf2cf54b
@ -1003,6 +1003,7 @@ class SocialMediaAuditor:
|
||||
is_mobile_friendly, has_viewport_meta, last_modified_at,
|
||||
hosting_provider, hosting_ip, server_software, site_author,
|
||||
cms_detected, google_rating, google_reviews_count,
|
||||
google_opening_hours, google_photos_count,
|
||||
audit_source, audit_version
|
||||
) VALUES (
|
||||
:company_id, :analyzed_at, :website_url, :http_status_code,
|
||||
@ -1010,6 +1011,7 @@ class SocialMediaAuditor:
|
||||
:is_mobile_friendly, :has_viewport_meta, :last_modified_at,
|
||||
:hosting_provider, :hosting_ip, :server_software, :site_author,
|
||||
:cms_detected, :google_rating, :google_reviews_count,
|
||||
:google_opening_hours, :google_photos_count,
|
||||
:audit_source, :audit_version
|
||||
)
|
||||
ON CONFLICT (company_id) DO UPDATE SET
|
||||
@ -1029,6 +1031,8 @@ class SocialMediaAuditor:
|
||||
cms_detected = EXCLUDED.cms_detected,
|
||||
google_rating = EXCLUDED.google_rating,
|
||||
google_reviews_count = EXCLUDED.google_reviews_count,
|
||||
google_opening_hours = EXCLUDED.google_opening_hours,
|
||||
google_photos_count = EXCLUDED.google_photos_count,
|
||||
audit_source = EXCLUDED.audit_source,
|
||||
audit_version = EXCLUDED.audit_version
|
||||
""")
|
||||
@ -1055,6 +1059,8 @@ class SocialMediaAuditor:
|
||||
'cms_detected': website.get('site_generator'),
|
||||
'google_rating': google_reviews.get('google_rating'),
|
||||
'google_reviews_count': google_reviews.get('google_reviews_count'),
|
||||
'google_opening_hours': google_reviews.get('google_opening_hours'),
|
||||
'google_photos_count': google_reviews.get('google_photos_count'),
|
||||
'audit_source': 'automated',
|
||||
'audit_version': '1.0',
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user