make the controllers' manager; fix errors, make it working

This commit is contained in:
bkfox
2016-07-19 18:32:07 +02:00
parent 5a77b4d4ea
commit f87c660878
10 changed files with 191 additions and 41 deletions

View File

@ -127,7 +127,7 @@ class SoundInfo:
if not os.path.exists(path):
return
old = Tracks.get_for(object = sound).exclude(tracks_id)
old = Track.get_for(object = sound)
if old:
return
@ -296,6 +296,7 @@ class Command(BaseCommand):
# sounds in directory
for path in os.listdir(subdir):
print(path)
path = os.path.join(subdir, path)
if not path.endswith(settings.AIRCOX_SOUND_FILE_EXT):
continue