ps: Fix recorder.py fetching wrong run information

This commit is contained in:
Paulus Schoutsen 2015-03-27 23:11:07 -07:00
parent 70bce24b0a
commit 5a0251c3cd

View File

@ -86,7 +86,7 @@ def run_information(point_in_time=None):
return RecorderRun()
run = _INSTANCE.query(
"SELECT * FROM recorder_runs WHERE start>? AND END IS NULL OR END<?",
"SELECT * FROM recorder_runs WHERE start<? AND END>?",
(point_in_time, point_in_time), return_value=RETURN_ONE_ROW)
return RecorderRun(run) if run else None