[FIX] list problem

This commit is contained in:
Arnold Dechamps 2024-07-31 10:11:01 +02:00
parent 59fcbf1cda
commit f31742a8a3
No known key found for this signature in database
GPG key ID: AE66543374E41C89

View file

@ -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)