# HG changeset patch # User Daniele Nicolodi # Date 1329318566 -3600 # Node ID 239c7d077f201b131e5f7af09012085fdd430a80 # Parent 863e3e81498c5dba5904d4930e05b021a04732f6 The toffset field is now stored as number of seconds: adapt. diff -r 863e3e81498c -r 239c7d077f20 src/ltpdarepo/views/browse.py --- a/src/ltpdarepo/views/browse.py Tue Dec 27 19:00:04 2011 +0100 +++ b/src/ltpdarepo/views/browse.py Wed Feb 15 16:09:26 2012 +0100 @@ -427,7 +427,7 @@ if obj['data type'] == 'tsdata': curs = g.db.cursor(DictCursor) curs.execute("""SELECT t0, nsecs, fs, xunits, yunits, - t0 - INTERVAL toffset/1000 SECOND AS `reference time` + t0 - INTERVAL toffset SECOND AS `reference time` FROM `%s`.tsdata WHERE obj_id=%%s""" % database, objid) details = curs.fetchone() if details is not None: