forked from rc/aircox
write tests for SoundStat
This commit is contained in:
@@ -103,10 +103,8 @@ class MoveTask(Task):
|
||||
log_msg = "Sound file moved: {event.src_path} -> {event.dest_path}"
|
||||
|
||||
def __call__(self, event, **kw):
|
||||
print("event", event.src_path, event.dest_path, Sound.objects.all())
|
||||
sound = Sound.objects.filter(file=event.src_path).first()
|
||||
if sound:
|
||||
print("got sound", event.src_path)
|
||||
kw["sound"] = sound
|
||||
kw["path"] = event.src_path
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user