From b2f8eea3405c2e766cd63d2915186b60954976c0 Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Tue, 19 Feb 2019 14:53:42 +0200 Subject: [PATCH] Fix: if should be elif --- redash/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redash/utils/__init__.py b/redash/utils/__init__.py index eb99caba5d..b752bacb37 100644 --- a/redash/utils/__init__.py +++ b/redash/utils/__init__.py @@ -82,7 +82,7 @@ def default(self, o): elif isinstance(o, (datetime.timedelta, uuid.UUID)): result = str(o) # See "Date Time String Format" in the ECMA-262 specification. - if isinstance(o, datetime.datetime): + elif isinstance(o, datetime.datetime): result = o.isoformat() if o.microsecond: result = result[:23] + result[26:]