fixing buggy secret generating code... need quotes in query
This commit is contained in:
parent
f6a2e30ce0
commit
58ba4ca769
1 changed files with 1 additions and 1 deletions
2
brain.py
2
brain.py
|
@ -82,7 +82,7 @@ def mkpass(size=10):
|
|||
|
||||
def get_generated(domain):
|
||||
get = 'SELECT password FROM secrets_gen WHERE base_url LIKE "%'+get_domain(domain)+'%" LIMIT 1'
|
||||
create = 'INSERT INTO secrets_gen (base_url, password) VALUES ('+get_domain(domain)+','+mkpass()+')'
|
||||
create = 'INSERT INTO secrets_gen (base_url, password) VALUES ("'+get_domain(domain)+'","'+mkpass()+'")'
|
||||
|
||||
cursor.execute(get)
|
||||
gen = cursor.fetchone()
|
||||
|
|
Loading…
Reference in a new issue