]> git.0d.be Git - django-panik-nonstop.git/commitdiff
remove soma check when looking if file is scheduled in nonstop
authorFrédéric Péters <fpeters@0d.be>
Mon, 6 Jan 2020 10:37:22 +0000 (11:37 +0100)
committerFrédéric Péters <fpeters@0d.be>
Mon, 6 Jan 2020 10:37:22 +0000 (11:37 +0100)
nonstop/utils.py

index 39c2501190f811f595c9d8640a9c5d8dd8cae6ea..d3d71dbef1e30310777313eaaf678540411d545d 100644 (file)
@@ -48,9 +48,6 @@ def get_diffusion_file_path(diffusion):
             diffusion.episode.emission.slug)
 
 def is_already_in_soma(diffusion):
-    if not pysoma:
-        # can't tell but as we couldn't add it anyway, let's lie.
-        return True
     return os.path.exists(os.path.join(LOCAL_BASE_PATH, get_diffusion_file_path(diffusion)))
 
 class DuplicateDiffusionSlot(Exception):