fix syntax error
This commit is contained in:
parent
ff7e2c1db8
commit
417d4d66a1
1 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ def setupdb():
|
|||
def get_challenge(db, path):
|
||||
c = db.cursor()
|
||||
c.execute('SELECT value FROM challenges WHERE q = ?', (path,))
|
||||
result = c.fetchone()
|
||||
result = c.fetchall()
|
||||
if result:
|
||||
return result
|
||||
else:
|
||||
|
|
@ -43,7 +43,7 @@ def main_query():
|
|||
stdout.write("example.com. example.example.com. 1 1d 2h 4w 1h\n")
|
||||
else:
|
||||
for i in get_challenge(db, qname.lower()):
|
||||
stdout.write("DATA\t" + qname + "\t" + qclass + "\tTXT\t1\t" + id + '\t"' + i + '"\n')
|
||||
stdout.write("DATA\t" + qname + "\t" + qclass + "\tTXT\t1\t" + id + '\t"' + i[0] + '"\n')
|
||||
stdout.write("LOG\tletsencrypt pipe handler got query: '" + data + "'\n")
|
||||
stdout.write("END\n")
|
||||
stdout.flush()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue