]> git.parisson.com Git - teleforma.git/commitdiff
fix
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 1 Aug 2014 09:57:49 +0000 (11:57 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 1 Aug 2014 09:57:49 +0000 (11:57 +0200)
teleforma/exam/models.py

index 9f603852ce7293e740d27b95d2da5e56fbdae2f5..9c847c25fe154d7c2a10ae0b58052785fce13c17 100644 (file)
@@ -301,8 +301,8 @@ class Script(BaseResource):
         new_rel = os.sep.join(old_rel_root) + os.sep + slugify(filename) + ext
 
         if os.path.exists(new_abs):
-             new_abs = os.sep.join(old_abs_root) + os.sep + unicode(self.uuid) + ext
-             new_rel = os.sep.join(old_rel_root) + os.sep + unicode(self.uuid) + ext
+            new_abs = os.sep.join(old_abs_root) + os.sep + unicode(self.uuid) + ext
+            new_rel = os.sep.join(old_rel_root) + os.sep + unicode(self.uuid) + ext
 
         if not os.path.exists(new_abs):
             os.rename(old_abs, new_abs)