Mercurial > code > home > repos > light9
changeset 940:183e3afea4cc
curvecalc tripleFilter optimization
Ignore-this: be23ad34d862fe960b253f8c33d7b5fd
author | drewp@bigasterisk.com |
---|---|
date | Thu, 13 Jun 2013 00:16:42 +0000 |
parents | 331e67fa1492 |
children | 1d9547f90737 |
files | bin/curvecalc |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/curvecalc Wed Jun 12 23:48:32 2013 +0000 +++ b/bin/curvecalc Thu Jun 13 00:16:42 2013 +0000 @@ -430,7 +430,8 @@ if not times: request.setResponseCode(404) return "not hovering over any time" - with graph.currentState() as g: + with graph.currentState( + tripleFilter=(session, L9['currentSong'], None)) as g: song = g.value(session, L9['currentSong']) return json.dumps({"song": song, "hoverTime" : times[0]}) raise NotImplementedError()