chore: frappe.whitelist for doc methods (#25465)

This commit is contained in:
Walstan Baptista
2021-04-24 14:23:08 +05:30
committed by GitHub
parent 184317d5bd
commit 4a805b5622
10 changed files with 20 additions and 4 deletions

View File

@@ -50,6 +50,7 @@ class TherapyType(Document):
self.db_set('change_in_item', 0)
@frappe.whitelist()
def add_exercises(self):
exercises = self.get_exercises_for_body_parts()
last_idx = max([cint(d.idx) for d in self.get('exercises')] or [0,])