Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LKuemmel committed Oct 16, 2023
1 parent 736d860 commit 397c04a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/helpermodules/update_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,8 +875,9 @@ def upgrade_datastore_21(self) -> None:
for topic, payload in self.all_received_topics.items():
if re.search("openWB/vehicle/[0-9]+/soc_module/config", topic) is not None:
config_payload = decode_payload(payload)
index = get_index(topic)
for interval_topic, interval_payload in self.all_received_topics.items():
if re.search("openWB/vehicle/[0-9]+/soc_module/interval_config", interval_topic) is not None:
if f"openWB/vehicle/{index}soc_module/interval_config" == interval_topic:
interval_config_payload = decode_payload(interval_payload)
break
general_config = GeneralVehicleConfig(
Expand Down

0 comments on commit 397c04a

Please sign in to comment.