Skip to content

Commit

Permalink
move deepcopy back to update_soc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
benderl committed Oct 9, 2023
1 parent 0b81118 commit 2e70c1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/control/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def ev_charge_template_data(self, value):
@property
@locked(ev_data_lock)
def ev_data(self) -> Dict[str, Ev]:
return copy.deepcopy(self._ev_data)
return self._ev_data

@ev_data.setter
@locked(ev_data_lock)
Expand Down
2 changes: 1 addition & 1 deletion packages/modules/update_soc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def update(self) -> None:

def _get_threads(self) -> Tuple[List[Thread], List[Thread]]:
threads_update, threads_store = [], []
ev_data = data.data.ev_data # returns a deep copy!
ev_data = copy.deepcopy(data.data.ev_data)
# Alle Autos durchgehen
for ev in ev_data.values():
try:
Expand Down

0 comments on commit 2e70c1b

Please sign in to comment.