[FIX] Bad var name
This commit is contained in:
parent
b6da583684
commit
59fcbf1cda
|
@ -59,8 +59,8 @@ def webrequest(tld, stack):
|
||||||
dbwriter(tld, stack, measurement)
|
dbwriter(tld, stack, measurement)
|
||||||
|
|
||||||
|
|
||||||
def dbwriter(unicodetld, stack, measurement):
|
def dbwriter(intld, stack, measurement):
|
||||||
tld = Atlas.objects.filter(tld=tld)
|
tld = Atlas.objects.filter(tld=intld)
|
||||||
tldstack = tld.filter(stack=stack)
|
tldstack = tld.filter(stack=stack)
|
||||||
if tldstack.exists():
|
if tldstack.exists():
|
||||||
primary_key = tldstack.values_list('pk', flat=True).first()
|
primary_key = tldstack.values_list('pk', flat=True).first()
|
||||||
|
@ -72,7 +72,7 @@ def dbwriter(unicodetld, stack, measurement):
|
||||||
if measurement is not None:
|
if measurement is not None:
|
||||||
db.measurement = measurement
|
db.measurement = measurement
|
||||||
db.save()
|
db.save()
|
||||||
tld = TLD.objects.filter(tld=tld)
|
tld = TLD.objects.filter(tld=intld)
|
||||||
if tld.exists():
|
if tld.exists():
|
||||||
primary_key = tld.values_list('pk', flat=True).first()
|
primary_key = tld.values_list('pk', flat=True).first()
|
||||||
db = TLD.objects.get(pk=primary_key)
|
db = TLD.objects.get(pk=primary_key)
|
||||||
|
|
Loading…
Reference in a new issue