← back to Ga4 Dashboard
auto-save: 2026-08-04T14:04:01 (1 files) — etl.py
80a2fa1307b278e8dfcdf1dbc2a8576145fa6077 · 2026-08-04 14:04:05 -0700 · Steve Abrams
Files touched
Diff
commit 80a2fa1307b278e8dfcdf1dbc2a8576145fa6077
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Aug 4 14:04:05 2026 -0700
auto-save: 2026-08-04T14:04:01 (1 files) — etl.py
---
etl.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/etl.py b/etl.py
index 1ce65f5..9adcd4b 100644
--- a/etl.py
+++ b/etl.py
@@ -171,9 +171,10 @@ def main() -> int:
return None
d = raw.strip().lower()
d = _re.sub(r'^https?://', '', d) # strip scheme
- d = d.lstrip('www.') # strip leading www.
- d = d.rstrip('/') # strip trailing slash
- d = d.split('/')[0] # drop any path component
+ d = d.split('/')[0] # drop any path component (before www strip)
+ if d.startswith('www.'): # strip the www. PREFIX (not a char-set!)
+ d = d[4:]
+ d = d.rstrip('/') # strip any trailing slash
return d or None
# Group property indices by normalized domain (blank domain = never dup).
← 464db7f Fix A: duplicate-domain dedup; Fix B: wire table column sort
·
back to Ga4 Dashboard
·
chore: lint (drop unused import), v1.0.1 (session close) 3942604 →