String format changes
This commit is contained in:
parent
45d22be777
commit
66ff933ec6
|
@ -28,7 +28,7 @@ def insert(**kwargs):
|
|||
qwery = qwery.rstrip(', ') + ') VALUES('
|
||||
for key in kwargs.keys():
|
||||
#qwery = qwery + '"' + kwargs.get(key) +'", '
|
||||
qwery = "{} '{}',".format(qwery,kwargs.get(key))
|
||||
qwery = "{} \"{}\",".format(qwery,kwargs.get(key))
|
||||
|
||||
qwery = qwery.rstrip(', ') + ');'
|
||||
print(qwery)
|
||||
|
|
Loading…
Reference in New Issue
Block a user