diff --git a/aircox/management/commands/sounds_monitor.py b/aircox/management/commands/sounds_monitor.py index 896fab3..bb85124 100755 --- a/aircox/management/commands/sounds_monitor.py +++ b/aircox/management/commands/sounds_monitor.py @@ -82,7 +82,8 @@ class SoundFile: return sound # FIXME: sound.program as not null - program = kwargs['program'] = Program.get_from_path(self.path) + if program is None: + program = kwargs['program'] = Program.get_from_path(self.path) sound, created = Sound.objects.get_or_create(file=self.sound_path, defaults=kwargs) \ if not sound else (sound, False) self.sound = sound diff --git a/aircox/models/__pycache__/__init__.cpython-37.pyc b/aircox/models/__pycache__/__init__.cpython-37.pyc deleted file mode 100644 index 1db681d..0000000 Binary files a/aircox/models/__pycache__/__init__.cpython-37.pyc and /dev/null differ diff --git a/aircox/models/__pycache__/diffusion.cpython-37.pyc b/aircox/models/__pycache__/diffusion.cpython-37.pyc deleted file mode 100644 index d64fe3c..0000000 Binary files a/aircox/models/__pycache__/diffusion.cpython-37.pyc and /dev/null differ diff --git a/aircox/models/__pycache__/episode.cpython-37.pyc b/aircox/models/__pycache__/episode.cpython-37.pyc deleted file mode 100644 index e24c66e..0000000 Binary files a/aircox/models/__pycache__/episode.cpython-37.pyc and /dev/null differ diff --git a/aircox/models/__pycache__/log.cpython-37.pyc b/aircox/models/__pycache__/log.cpython-37.pyc deleted file mode 100644 index 1d2a826..0000000 Binary files a/aircox/models/__pycache__/log.cpython-37.pyc and /dev/null differ diff --git a/aircox/models/__pycache__/mixins.cpython-37.pyc b/aircox/models/__pycache__/mixins.cpython-37.pyc deleted file mode 100644 index a182ce6..0000000 Binary files a/aircox/models/__pycache__/mixins.cpython-37.pyc and /dev/null differ diff --git a/aircox/models/__pycache__/page.cpython-37.pyc b/aircox/models/__pycache__/page.cpython-37.pyc deleted file mode 100644 index 28ae560..0000000 Binary files a/aircox/models/__pycache__/page.cpython-37.pyc and /dev/null differ diff --git a/aircox/models/__pycache__/program.cpython-37.pyc b/aircox/models/__pycache__/program.cpython-37.pyc deleted file mode 100644 index ae0e9b6..0000000 Binary files a/aircox/models/__pycache__/program.cpython-37.pyc and /dev/null differ diff --git a/aircox/models/__pycache__/sound.cpython-37.pyc b/aircox/models/__pycache__/sound.cpython-37.pyc deleted file mode 100644 index 9e5bdf9..0000000 Binary files a/aircox/models/__pycache__/sound.cpython-37.pyc and /dev/null differ diff --git a/aircox/models/__pycache__/station.cpython-37.pyc b/aircox/models/__pycache__/station.cpython-37.pyc deleted file mode 100644 index 873eb19..0000000 Binary files a/aircox/models/__pycache__/station.cpython-37.pyc and /dev/null differ