From 18c0c3f019abd3da671d01de233c08ee683c8956 Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Fri, 2 Aug 2024 23:13:13 +0200 Subject: [PATCH] [FIX] Attempting to fix --- atlas/atlascreator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/atlas/atlascreator.py b/atlas/atlascreator.py index 9938a56..97b3498 100644 --- a/atlas/atlascreator.py +++ b/atlas/atlascreator.py @@ -60,14 +60,14 @@ def webrequest(tld, stack): def dbwriter(intld, stack, measurement): - tld = Atlas.objects.filter(tld=intld) + tld = Atlas.objects.filter(unicodetld=intld) tldstack = tld.filter(stack=stack) if tldstack.exists(): primary_key = tldstack.values_list('pk', flat=True).first() db = Atlas.objects.get(pk=primary_key) else: db = Atlas() - db.tld = intld + db.unicodetld = intld db.stack = stack if measurement is not None: db.measurement = measurement @@ -93,9 +93,9 @@ def main(): tlds = TLD.objects.all().order_by('tld') for tld in tlds: db = TLD.objects.get(tld=tld) - tlds.append(db.tld) + tldslist.append(db.tld) for tld in tldslist: - db = TLD.objects.get(tld=tld) + db = TLD.objects.get(unicodetld=tld) if db.atlasv4 is None: webrequest(tld, 4) if db.atlasv6 is None: