Skip to content

Commit

Permalink
Merge branch 'bug/sc-188829-pi-time-expression-value-drift' into feat…
Browse files Browse the repository at this point in the history
…ure/sc-190307-add-template-manual-input-on-attribute-search-connector
  • Loading branch information
alexbourret committed Jun 25, 2024
2 parents d7c547f + 0f24e04 commit 55a18e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python-connectors/pi-system_event-frames-search/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ def __init__(self, config, plugin_config):
if self.object_id is None:
self.object_id = config.get("next_element", None)
self.start_time = config.get("start_time")
self.start_time = self.client.parse_pi_time(self.start_time)
if self.start_time:
config["start_time"] = self.start_time
self.end_time = config.get("end_time")
self.end_time = self.client.parse_pi_time(self.end_time)
if self.end_time:
config["end_time"] = self.end_time
self.search_mode = config.get("search_mode", None)
self.output_type = config.get("output_type")
assert_time_format(self.start_time, error_source="start time")
Expand Down

0 comments on commit 55a18e5

Please sign in to comment.