]> git.llucax.com Git - software/sercom-old.git/blobdiff - src/sc_dbq
Bugfix.
[software/sercom-old.git] / src / sc_dbq
index 1f1a3678703bbfa182a1b20cf30c7a9656ec496f..2b063345eb3d9a68d1937f21b86e787f24989a2b 100755 (executable)
@@ -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