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 %} {%- block script %}
{{ super() }} {{ super() }}
{% if is_moderator %} {% if is_moderator %}
<script> <script>
frappe.boot.user = { frappe.boot.user = {

View File

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

View File

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