mirror of
https://github.com/fergalmoran/dss.git
synced 2025-12-28 20:49:08 +00:00
Altered save in waveform task to only update required fields
This commit is contained in:
@@ -23,7 +23,7 @@ def waveform_generated_callback(sender, **kwargs):
|
||||
if mix is not None:
|
||||
mix.waveform_generated = True
|
||||
mix.duration = mp3_length(mix.get_absolute_path())
|
||||
mix.save()
|
||||
mix.save(update_fields=["waveform_generated", "duration"])
|
||||
except ObjectDoesNotExist:
|
||||
print "Mix has still not been uploaded"
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user