Allow SQL arguments as a list or tuple

This commit is contained in:
mailchuck 2015-11-27 00:37:44 +01:00 committed by Peter Surda
parent d75533c6b6
commit 6ad3c956c9

View File

@ -11,6 +11,8 @@ def sqlQuery(sqlStatement, *args):
if args == ():
sqlSubmitQueue.put('')
elif type(args[0]) in [list, tuple]:
sqlSubmitQueue.put(args[0])
else:
sqlSubmitQueue.put(args)