Skip to content
Snippets Groups Projects
Unverified Commit f3f07c1f authored by R En's avatar R En Committed by Eliot Berriot
Browse files

Updated tasks.py to process replace flag

parent 8103ea54
No related branches found
No related tags found
No related merge requests found
......@@ -136,8 +136,8 @@ def _do_import(import_job, use_acoustid=False):
track_file = None
if replace:
logger.info("[Import Job %s] replacing existing audio file", import_job.pk)
track_file = track.files.first()
logger.info("[Import Job %s] deleting existing audio file", import_job.pk)
track.files.all().delete()
elif track.files.count() > 0:
logger.info(
"[Import Job %s] skipping, we already have a file for this track",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment