From 9e2092c4b243dab501a77659adc7f091cd285deb Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 18 Dec 2022 14:16:26 -0700 Subject: [PATCH] Fix new focalpoint parsing --- activities/models/post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activities/models/post.py b/activities/models/post.py index 1b993a2..e771f62 100644 --- a/activities/models/post.py +++ b/activities/models/post.py @@ -776,7 +776,7 @@ class Post(StatorModel): post.attachments.all().delete() for attachment in get_list(data, "attachment"): if "focalPoint" in attachment: - focal_x, focal_y = attachment["focalPoint"]["@list"] + focal_x, focal_y = attachment["focalPoint"] else: focal_x, focal_y = None, None post.attachments.create(