Browse Source

Export Fixtures with filters.

version-14
Luis Fernandes 9 years ago
parent
commit
99c07d39ae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/utils/fixtures.py

+ 1
- 1
frappe/utils/fixtures.py View File

@@ -51,7 +51,7 @@ def export_fixtures():
if isinstance(fixture, dict):
filters = fixture.get("filters")
fixture = fixture.get("doctype") or fixture.get("dt")
print "Exporting {0} {1} {2}".format(fixture, app, filters)
print "Exporting {0} {1} {2}".format(fixture, app, filters or "")
if not os.path.exists(frappe.get_app_path(app, "fixtures")):
os.mkdir(frappe.get_app_path(app, "fixtures"))



Loading…
Cancel
Save