From 20ee3fcb0fbdddac95171b853ee5f0a19c6fe2a1 Mon Sep 17 00:00:00 2001 From: acidvegas Date: Sat, 23 Mar 2024 14:48:45 -0400 Subject: [PATCH] Added a comment about the methodology of determining the zone the data is from. --- ingestors/ingest_zone.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ingestors/ingest_zone.py b/ingestors/ingest_zone.py index 31854ae..3cd1243 100644 --- a/ingestors/ingest_zone.py +++ b/ingestors/ingest_zone.py @@ -68,6 +68,7 @@ async def process_data(file_path: str): # Determine the zone name from the file path (e.g., /path/to/zones/com.eu.txt -> com.eu zone) zone = '.'.join(file_path.split('/')[-1].split('.')[:-1]) + # Note: For now, this is the best way because we are not just ingesting TLD zone files, but entire zones for domains aswell... # Read the input file line by line async for line in input_file: