diff --git a/scripts/social_media_audit.py b/scripts/social_media_audit.py index 4d39030..8223816 100644 --- a/scripts/social_media_audit.py +++ b/scripts/social_media_audit.py @@ -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', })