From c2ea4514ca0f3256b716af0101e429f36c34d308 Mon Sep 17 00:00:00 2001 From: Bui Date: Thu, 18 Oct 2018 00:11:59 +0100 Subject: [PATCH] remove debug lines --- app.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/app.py b/app.py index 59cf450..1fa7c94 100644 --- a/app.py +++ b/app.py @@ -167,9 +167,6 @@ def make_preview(song_id, song_type): song_path = 'public/songs/%s/main.mp3' % song_id prev_path = 'public/songs/%s/preview.mp3' % song_id - if os.path.isfile(prev_path): - os.remove(prev_path) - if os.path.isfile(song_path) and not os.path.isfile(prev_path): preview = get_preview(song_id, song_type) / 1000 if not preview or preview <= 0.1: