Merge pull request #4967 from FinnStutzenstein/removeDeepcopy
Remove deepcopy (closes #3893)
This commit is contained in:
commit
ee0b82b93b
@ -1,4 +1,4 @@
|
|||||||
from copy import deepcopy
|
import json
|
||||||
from typing import Any, Dict, List
|
from typing import Any, Dict, List
|
||||||
|
|
||||||
from ..utils.access_permissions import BaseAccessPermissions
|
from ..utils.access_permissions import BaseAccessPermissions
|
||||||
@ -61,7 +61,7 @@ class MotionAccessPermissions(BaseAccessPermissions):
|
|||||||
|
|
||||||
# Parse single motion.
|
# Parse single motion.
|
||||||
if permission:
|
if permission:
|
||||||
full_copy = deepcopy(full)
|
full_copy = json.loads(json.dumps(full))
|
||||||
full_copy["comments"] = []
|
full_copy["comments"] = []
|
||||||
for comment in full["comments"]:
|
for comment in full["comments"]:
|
||||||
if await async_in_some_groups(
|
if await async_in_some_groups(
|
||||||
|
Loading…
Reference in New Issue
Block a user