]> git.parisson.com Git - teleforma.git/commitdiff
fix script uuid symlink (HOTFIX)
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Sun, 28 Jan 2024 18:14:43 +0000 (19:14 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Sun, 28 Jan 2024 18:14:43 +0000 (19:14 +0100)
teleforma/exam/models.py

index 5d9d5a2b9b023606cc17d1ef046131a54fd58e95..b4e3ad740a7877a70885f20cef46a62f03185976 100755 (executable)
@@ -400,7 +400,7 @@ class Script(BaseResource):
         new_rel = os.sep.join(old_rel_root) + os.sep + str(self.uuid) + ext
 
         if not os.path.exists(new_abs):
-            os.symlink(old_abs, new_abs)
+            os.symlink(filename + ext, new_abs)
 
         if not self.url:
             self.url = settings.MEDIA_URL + str(new_rel)