From f31742a8a3318ee88f67b597677e9706b72aaaff Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Wed, 31 Jul 2024 10:11:01 +0200 Subject: [PATCH] [FIX] list problem --- atlas/atlascreator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/atlas/atlascreator.py b/atlas/atlascreator.py index 9d662d5..9938a56 100644 --- a/atlas/atlascreator.py +++ b/atlas/atlascreator.py @@ -67,7 +67,7 @@ def dbwriter(intld, stack, measurement): db = Atlas.objects.get(pk=primary_key) else: db = Atlas() - db.tld = tld + db.tld = intld db.stack = stack if measurement is not None: db.measurement = measurement @@ -88,13 +88,13 @@ def dbwriter(intld, stack, measurement): def main(): - unicodetlds = [] + tldslist = [] # This will get the TLD's in unicode format from the database and put them in the list tlds = TLD.objects.all().order_by('tld') for tld in tlds: db = TLD.objects.get(tld=tld) tlds.append(db.tld) - for tld in tlds: + for tld in tldslist: db = TLD.objects.get(tld=tld) if db.atlasv4 is None: webrequest(tld, 4)