:art: Update qiniuonce

huangqimin001 10 月之前
父節點
當前提交
1f6b320480
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      commands/management/commands/qiniuonce.py

+ 1 - 1
commands/management/commands/qiniuonce.py

@@ -23,7 +23,7 @@ class Command(CompatibilityBaseCommand):
23 23
                 if ext.lower() not in ['jpg', 'jpeg', 'png']:
24 24
                     continue
25 25
                 try:
26
-                    file_path = 'media/file/{}'.format(file)
26
+                    file_path = '{}/{}'.format(dir, file)
27 27
                     if os.path.exists(file_path):
28 28
                         upload_file_path(file_path, key=file, bucket='tamron')
29 29
                         os.remove(file_path)