remove nulability of Program, rename Sound->SoundStats, update admin display

This commit is contained in:
bkfox
2020-09-21 15:33:10 +02:00
parent e3151ba0bb
commit 5a17d034c4
5 changed files with 18 additions and 16 deletions

View File

@ -60,7 +60,7 @@ class Stats:
self.parse(str(out, encoding='utf-8'))
class Sound:
class SoundStats:
path = None # file path
sample_length = 120 # default sample length in seconds
stats = None # list of samples statistics
@ -155,7 +155,7 @@ class Command (BaseCommand):
raise CommandError('no attribute specified')
# sound analyse and checks
self.sounds = [Sound(path, options.get('sample_length'))
self.sounds = [SoundStats(path, options.get('sample_length'))
for path in options.get('files')]
self.bad = []
self.good = []