Commit a5cc26fc authored by aoh's avatar aoh
Browse files

Fix bug in db.py


Signed-off-by: aoh's avataraoh <aoh@lysator.liu.se>
parent 9534d467
......@@ -56,7 +56,7 @@ class DB():
cursor.execute('SELECT subdomain.id '
'FROM subdomain '
'LEFT OUTER JOIN update_key ON subdomain.id = update_key.subid '
'WHERE subdomain.id = %s AND update_key.secret IS NULL', domainid)
'WHERE subdomain.domainid = %s AND update_key.secret IS NULL', domainid)
return [item.get("id") for item in cursor.fetchall()]
def set_subdomain_keys(self, domainid, public, private):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment