From 1ab94262ff340da6becf5dbbf81352016ea65846 Mon Sep 17 00:00:00 2001 From: Fergal Moran Date: Mon, 12 Aug 2013 16:48:12 +0100 Subject: [PATCH] Fixed super dodgy file move in create_waveform task --- core/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tasks.py b/core/tasks.py index 8a5d6b7..7ecc8bd 100755 --- a/core/tasks.py +++ b/core/tasks.py @@ -13,7 +13,7 @@ def create_waveform_task(in_file, mix_uid): if os.path.isfile(out_file): print "Waveform generated successfully" file, extension = os.path.splitext(in_file) - new_file = in_file.replace('cache', 'mixes') + new_file = os.path.join(settings.MEDIA_ROOT, "mixes", file) print "Moving cache audio clip from %s to %s" % (in_file, new_file) shutil.move(in_file, new_file) print "Uid: %s" % mix_uid