[FIX] Bad var name

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

View file

@ -59,8 +59,8 @@ def webrequest(tld, stack):
dbwriter(tld, stack, measurement)
def dbwriter(unicodetld, stack, measurement):
tld = Atlas.objects.filter(tld=tld)
def dbwriter(intld, stack, measurement):
tld = Atlas.objects.filter(tld=intld)
tldstack = tld.filter(stack=stack)
if tldstack.exists():
primary_key = tldstack.values_list('pk', flat=True).first()
@ -72,7 +72,7 @@ def dbwriter(unicodetld, stack, measurement):
if measurement is not None:
db.measurement = measurement
db.save()
tld = TLD.objects.filter(tld=tld)
tld = TLD.objects.filter(tld=intld)
if tld.exists():
primary_key = tld.values_list('pk', flat=True).first()
db = TLD.objects.get(pk=primary_key)