X-Git-Url: https://git.llucax.com/software/sercom-old.git/blobdiff_plain/110d3b3089c6110d1fd035f9f1a3f404be61b7f4..ba0abf5a76299fa7b8b6f16b3ac6187344a96276:/src/sc_dbq?ds=sidebyside diff --git a/src/sc_dbq b/src/sc_dbq index 1f1a367..2b06334 100755 --- a/src/sc_dbq +++ b/src/sc_dbq @@ -20,6 +20,14 @@ def args2dict(l, conn): for arg in l: key, val = arg.split('=') if val == 'None': val = None + elif val == 'True': val = True + elif val == 'False': val = False + elif val.isdigit(): + val = int(val) + else: + try: + val = float(val) + except ValueError: pass d[key] = val return d