We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09bcb79 commit 36bf0d9Copy full SHA for 36bf0d9
tools/modules/redirect_check.py
@@ -76,6 +76,13 @@ def process_compromised_accounts():
76
print(f"Updating account {account_key} with final URL: {final_url} and domain: {final_domain}")
77
account_info['FINAL_URL'] = final_url
78
account_info['FINAL_URL_DOMAIN'] = final_domain
79
+
80
+ # Check if FINAL_URL is different from SURFACE_URL and update statuses
81
+ if surface_url != final_url:
82
+ account_info['SURFACE_URL_STATUS'] = "ACTIVE"
83
+ account_info['FINAL_URL_STATUS'] = "ACTIVE"
84
+ print(f"FINAL_URL differs from SURFACE_URL. Set statuses to ACTIVE for account {account_key}.")
85
86
updated_count += 1
87
else:
88
print(f"No final URL found for account {account_key}, skipping update...")
0 commit comments