From b92b2da4707d304cf0b4cbe2e8e64282fe25e228 Mon Sep 17 00:00:00 2001 From: fafoy Date: Wed, 24 May 2017 19:43:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=89=E5=8F=AF=E8=83=BD=E6=9C=89=E7=A9=BA?= =?UTF-8?q?=E7=9A=84=E8=A9=9E=E6=A2=9D=E7=85=9E=E6=9C=89=E9=9F=B3=E6=AA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...252\236\350\276\255\345\205\2702\345\214\257\345\205\245.py" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/\345\214\257\345\205\245\345\210\260\350\207\272\347\201\243\350\250\200\350\252\236\350\263\207\346\226\231\345\272\253/management/commands/\346\227\217\350\252\236\350\276\255\345\205\2702\345\214\257\345\205\245.py" "b/\345\214\257\345\205\245\345\210\260\350\207\272\347\201\243\350\250\200\350\252\236\350\263\207\346\226\231\345\272\253/management/commands/\346\227\217\350\252\236\350\276\255\345\205\2702\345\214\257\345\205\245.py" index ae5d870..6c22a71 100644 --- "a/\345\214\257\345\205\245\345\210\260\350\207\272\347\201\243\350\250\200\350\252\236\350\263\207\346\226\231\345\272\253/management/commands/\346\227\217\350\252\236\350\276\255\345\205\2702\345\214\257\345\205\245.py" +++ "b/\345\214\257\345\205\245\345\210\260\350\207\272\347\201\243\350\250\200\350\252\236\350\263\207\346\226\231\345\272\253/management/commands/\346\227\217\350\252\236\350\276\255\345\205\2702\345\214\257\345\205\245.py" @@ -59,7 +59,7 @@ def handle(self, *args, **參數): 語料目錄, splitext(basename(urlparse(mp3網址音檔).path))[0] + '.wav' ) - if isfile(wav音檔): + if 詞條 and isfile(wav音檔): 影音內容 = {'影音所在': wav音檔, '種類': 種類} 影音內容.update(公家內容) 影音 = 影音表.加資料(影音內容)