From 7b4f6fff272251803445b2a10efc461786132f12 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 12 Jun 2014 22:23:06 +0400 Subject: [PATCH] Fix a bug: convert str to float --- Storage/bkmk_stjson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Storage/bkmk_stjson.py b/Storage/bkmk_stjson.py index a08f619..43f5881 100644 --- a/Storage/bkmk_stjson.py +++ b/Storage/bkmk_stjson.py @@ -184,7 +184,7 @@ class storage_json(Walker): def convert_date_to_json(date): if date: - date = int(date * 10**6) + date = int(float(date) * 10**6) return date def convert_date_from_json(date): -- 2.39.5