fix: formatting

This commit is contained in:
Jannat Patel
2023-03-13 18:14:14 +05:30
parent d96e3f4f9f
commit 5fc879b0ef
3 changed files with 11 additions and 13 deletions

View File

@@ -274,7 +274,7 @@
{%- block script %}
{{ super() }}
{% if is_moderator %}
<script>
frappe.boot.user = {

View File

@@ -29,9 +29,8 @@ frappe.ready(() => {
});
setTimeout(() => {
console.log(locals.Doctype)
console.log(locals.Doctype);
}, 10000);
});
const submit_student = (e) => {
@@ -117,7 +116,7 @@ const create_live_class = (e) => {
3
);
setTimeout(function () {
window.location.reload()
window.location.reload();
}, 1000);
},
});
@@ -180,7 +179,6 @@ const make_live_class_form = (e) => {
$("#live-class-form .frappe-control").removeClass("hide-control");
};
const make_add_students_section = () => {
this.field_group = new frappe.ui.FieldGroup({
fields: [
@@ -190,13 +188,13 @@ const make_add_students_section = () => {
options: "User",
label: "Add Student",
filters: {
ignore_user_type: 1
}
}
ignore_user_type: 1,
},
},
],
body: $(".add-students").get(0)
body: $(".add-students").get(0),
});
this.field_group.make();
$(".add-students .form-section:last").removeClass("empty-section");
$(".add-students .frappe-control").removeClass("hide-control");
}
};

View File

@@ -6,7 +6,7 @@ def get_context(context):
context.no_cache = 1
context.classes = frappe.get_all(
"LMS Class", {
"end_date": [">=", getdate()]
}, ["name", "title", "start_date", "end_date"]
"LMS Class",
{"end_date": [">=", getdate()]},
["name", "title", "start_date", "end_date"],
)