Fix new focalpoint parsing

This commit is contained in:
Andrew Godwin 2022-12-18 14:16:26 -07:00
parent bfe015ebd8
commit 9e2092c4b2

View file

@ -776,7 +776,7 @@ class Post(StatorModel):
post.attachments.all().delete() post.attachments.all().delete()
for attachment in get_list(data, "attachment"): for attachment in get_list(data, "attachment"):
if "focalPoint" in attachment: if "focalPoint" in attachment:
focal_x, focal_y = attachment["focalPoint"]["@list"] focal_x, focal_y = attachment["focalPoint"]
else: else:
focal_x, focal_y = None, None focal_x, focal_y = None, None
post.attachments.create( post.attachments.create(