From 7f567d78a0eb0836fe5ea85faa6f23774cc202d5 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 17 Jun 2012 01:10:34 +0200 Subject: [PATCH] round srt timestamps to 3 digits --- pandora/item/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index e04468959..20395324a 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -1239,8 +1239,8 @@ class Item(models.Model): annotation = Annotation( item=self, layer=layer, - start=data['in'], - end=data['out'], + start=float('%0.03f'%data['in']), + end=float('%0.03f'%data['out']), value=value, user=user )