.
This commit is contained in:
+1
-1
@@ -398,7 +398,7 @@ class SeriesImage(SeriesImageBase):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
return {"metadata": d, "url": f"{REMOTE_URL}{self.image.url}"}
|
return {"metadata": d, "url": f"dicomweb:{REMOTE_URL}{self.image.url}"}
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -242,7 +242,7 @@ class SeriesBase(models.Model):
|
|||||||
return "{}{}{}".format(examination, plane, contrast)
|
return "{}{}{}".format(examination, plane, contrast)
|
||||||
|
|
||||||
def get_image_urls(self):
|
def get_image_urls(self):
|
||||||
images = [f"dicomweb:{REMOTE_URL}{i.image.url}" for i in self.images.all()]
|
images = [f"{REMOTE_URL}{i.image.url}" for i in self.images.all()]
|
||||||
|
|
||||||
return ",".join(images)
|
return ",".join(images)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user