瀏覽代碼

import csv fixtures too

version-14
Rushabh Mehta 11 年之前
父節點
當前提交
1c42cf90fe
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. +1
    -2
      frappe/utils/fixtures.py

+ 1
- 2
frappe/utils/fixtures.py 查看文件

@@ -10,6 +10,5 @@ def sync_fixtures():
for app in frappe.get_installed_apps():
if os.path.exists(frappe.get_app_path(app, "fixtures")):
for fname in os.listdir(frappe.get_app_path(app, "fixtures")):
if fname.endswith(".json"):
if fname.endswith(".json") or fname.endswith(".csv"):
import_doclist(frappe.get_app_path(app, "fixtures", fname))

Loading…
取消
儲存