Skip to content

Commit

Permalink
Merge pull request #3 from Pardeshi-Aditya/main
Browse files Browse the repository at this point in the history
fixed get_erd function params
  • Loading branch information
sumitjain236 authored Dec 7, 2023
2 parents 28595eb + 0884d27 commit 24d5d1d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frappe_er_generator/frappe_er_generator/er_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,10 @@ def get_doctype_json():


@frappe.whitelist()
def get_erd():
def get_erd(doctypes):
# 1. This is very generic function only have to pass list of doctypes
# 2. This function will generate ERD for all the doctypes passed

doctypes = get_doctypes_from_module('CRM')['doctype']

# json_list is list of doctype json data(meta data)
json_list = []

Expand Down

0 comments on commit 24d5d1d

Please sign in to comment.