Skip to content
Snippets Groups Projects
Commit a2167306 authored by Paulus Schoutsen's avatar Paulus Schoutsen
Browse files

Bugfix for states at point in time on new databases

parent 1c593c9c
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,10 @@ def get_states(point_in_time, entity_ids=None, run=None):
if run is None:
run = recorder.run_information(point_in_time)
# History did not run before point_in_time
if run is None:
return []
where = run.where_after_start_run + "AND created < ? "
where_data = [point_in_time]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment