]> git.parisson.com Git - teleforma.git/commitdiff
fix webclass preview
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sat, 5 Jul 2025 07:54:06 +0000 (09:54 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sat, 5 Jul 2025 07:54:06 +0000 (09:54 +0200)
teleforma/webclass/models.py

index ee823868a949156ef29f12c8ea910143fa5f265e..e80c20c23378620c79bbefba299a351245584291 100644 (file)
@@ -71,7 +71,7 @@ def get_records_from_bbb(**kwargs):
             preview = ""
             images = format.get('preview', {}).get('images', {})
             if images:
-                preview = str(images.get('image', '')).replace("http://", "https://")
+                preview = images.dict()['images']['image'][0].replace("http://", "https://")
             data = {
                 'id': str(recording['recordID']),
                 'server_id': server.id,