remove duplicate attachment url check (#608)
This commit is contained in:
parent
b2a9b334be
commit
2d140f2e97
|
@ -939,10 +939,6 @@ class Post(StatorModel):
|
|||
# These have no IDs, so we have to wipe them each time
|
||||
post.attachments.all().delete()
|
||||
for attachment in get_list(data, "attachment"):
|
||||
if "url" not in attachment.keys():
|
||||
# sometimes attachments don't have URLs. Skip them.
|
||||
print(f"no URL for {attachment} in {post}")
|
||||
continue
|
||||
if "focalPoint" in attachment:
|
||||
try:
|
||||
focal_x, focal_y = attachment["focalPoint"]
|
||||
|
|
Loading…
Reference in New Issue