From de480cbf0dd6b58886fe10bf411e3c43740ee783 Mon Sep 17 00:00:00 2001 From: Nicolas Payart Date: Thu, 6 Apr 2017 10:42:07 +0200 Subject: [PATCH] Fix condition in dispatch_value function to manage values '0' that were interpreted as False --- mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql.py b/mysql.py index cb80b64..8c05a8b 100644 --- a/mysql.py +++ b/mysql.py @@ -494,7 +494,7 @@ def dispatch_value(prefix, key, value, type, type_instance=None): type_instance = key log_verbose('Sending value: %s/%s=%s' % (prefix, type_instance, value)) - if not value: + if value is None: return try: value = int(value)