Added a comment about the methodology of determining the zone the data is from.

This commit is contained in:
Dionysus 2024-03-23 14:48:45 -04:00
parent e74741c0ad
commit 20ee3fcb0f
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -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) # 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]) 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 # Read the input file line by line
async for line in input_file: async for line in input_file: