Skip to content

Commit

Permalink
Prevent working on cached results by deepcopy (#1360)
Browse files Browse the repository at this point in the history
  • Loading branch information
r-peschke committed Jun 17, 2022
1 parent cebb780 commit a363c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openslides_backend/services/datastore/cache_adapter.py
Expand Up @@ -53,7 +53,7 @@ def get(
cached_model = results[collection_from_fqid(fqid)][id_from_fqid(fqid)]
if not missing_fields_per_fqid:
# nothing to do, we've got the full model
return cached_model
return deepcopy(cached_model)

result = super().get(
fqid, missing_fields_per_fqid[fqid], lock_result=lock_result
Expand Down

0 comments on commit a363c96

Please sign in to comment.