Skip to content

Commit 36bf0d9

Browse files
committed
Update redirect_check.py
1 parent 09bcb79 commit 36bf0d9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/modules/redirect_check.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ def process_compromised_accounts():
7676
print(f"Updating account {account_key} with final URL: {final_url} and domain: {final_domain}")
7777
account_info['FINAL_URL'] = final_url
7878
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+
7986
updated_count += 1
8087
else:
8188
print(f"No final URL found for account {account_key}, skipping update...")

0 commit comments

Comments
 (0)