fix: codacy issues

This commit is contained in:
Rucha Mahabal 2020-09-07 20:12:29 +05:30
parent 06f89a1b94
commit 4673bed67e

View File

@ -8,7 +8,7 @@ frappe.ui.form.on('Student', {
frm.add_fetch('student', 'gender', 'gender');
frm.add_fetch('student', 'date_of_birth', 'date_of_birth');
frm.set_query('student', 'siblings', function(doc, cdt, cdn) {
frm.set_query('student', 'siblings', function(doc) {
return {
'filters': {
'name': ['!=', doc.name]
@ -27,7 +27,7 @@ frappe.ui.form.on('Student', {
}
frappe.db.get_value('Education Settings', {name: 'Education Settings'}, 'user_creation_skip', (r) => {
if (r.user_creation_skip === "0") {
if (r.user_creation_skip === "0") {
frm.set_df_property('student_email_id', 'reqd', 1);
}
});