remove duplicate attachment url check

pull/608/head
Osma Ahvenlampi 2023-07-12 21:24:50 +03:00
rodzic b2a9b334be
commit 3e42410eb8
1 zmienionych plików z 0 dodań i 4 usunięć

Wyświetl plik

@ -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"]