diff --git a/backend/app/services/domain_checker.py b/backend/app/services/domain_checker.py index a735e73..851bf88 100644 --- a/backend/app/services/domain_checker.py +++ b/backend/app/services/domain_checker.py @@ -197,12 +197,12 @@ class DomainChecker: # Expiration date - check multiple variations if not expiration_date: if any(x in action for x in ['expiration', 'expire']): - expiration_date = self._parse_datetime(date_str) + expiration_date = self._parse_datetime(date_str) # Creation/registration date if not creation_date: if any(x in action for x in ['registration', 'created']): - creation_date = self._parse_datetime(date_str) + creation_date = self._parse_datetime(date_str) # Update date if any(x in action for x in ['changed', 'update', 'last changed']): diff --git a/backend/app/services/domain_health.py b/backend/app/services/domain_health.py index b3cf66b..fb7bec6 100644 --- a/backend/app/services/domain_health.py +++ b/backend/app/services/domain_health.py @@ -409,7 +409,7 @@ class DomainHealthChecker: result.has_ssl = True result.is_valid = True # Certificate exists and is technically valid, just can't verify chain locally except Exception: - result.has_ssl = True + result.has_ssl = True result.is_valid = False result.error = "Certificate exists but could not be parsed" return result @@ -433,8 +433,8 @@ class DomainHealthChecker: for item in issuer: if isinstance(item, tuple) and len(item) > 0: if isinstance(item[0], tuple) and item[0][0] == 'organizationName': - result.issuer = item[0][1] - break + result.issuer = item[0][1] + break elif isinstance(item[0], str) and item[0] == 'organizationName': result.issuer = item[1] if len(item) > 1 else None break @@ -444,8 +444,8 @@ class DomainHealthChecker: result.has_ssl = False result.error = "Port 443 not responding" else: - result.has_ssl = False - result.error = "no_ssl" + result.has_ssl = False + result.error = "no_ssl" except Exception as e: result.error = str(e) diff --git a/backend/app/services/playwright_scraper.py b/backend/app/services/playwright_scraper.py index e976c8a..71b5c1d 100644 --- a/backend/app/services/playwright_scraper.py +++ b/backend/app/services/playwright_scraper.py @@ -42,6 +42,10 @@ try: except ImportError: PLAYWRIGHT_AVAILABLE = False Stealth = None + # Define dummy types for type hints + Browser = Any + BrowserContext = Any + Page = Any logger.warning("Playwright not installed. Stealth scraping disabled.")