-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Part 2 #3
base: base-sha/b0a93b24c77c7ac0e387ffbe94c72811e548f4e1
Are you sure you want to change the base?
Part 2 #3
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -7,6 +7,8 @@ | |||||||||||||||||||||
|
||||||||||||||||||||||
class GroupClass(Document): | ||||||||||||||||||||||
pass | ||||||||||||||||||||||
|
||||||||||||||||||||||
|
||||||||||||||||||||||
@frappe.whitelist() | ||||||||||||||||||||||
def fetch_students(selected_modules, department): | ||||||||||||||||||||||
if not selected_modules or not department: | ||||||||||||||||||||||
|
@@ -60,17 +62,21 @@ def fetch_students(selected_modules, department): | |||||||||||||||||||||
|
||||||||||||||||||||||
return students | ||||||||||||||||||||||
|
||||||||||||||||||||||
|
||||||||||||||||||||||
|
||||||||||||||||||||||
@frappe.whitelist() | ||||||||||||||||||||||
def create_classes(group_class_doc,group_class_modules,students): | ||||||||||||||||||||||
def create_classes(group_title,year,stage,semester,department,group_class_modules,students): | ||||||||||||||||||||||
group_class_modules = json.loads(str(group_class_modules)) | ||||||||||||||||||||||
for module in group_class_modules: | ||||||||||||||||||||||
# Convert the group_class_doc to a dictionary | ||||||||||||||||||||||
group_class_doc = json.loads(str(group_class_doc)) | ||||||||||||||||||||||
# group_class_doc = json.loads(str(group_class_doc)) | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: Remove commented-out code. The commented-out line
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this comment correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this comment helpful? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the comment type correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the comment area correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What type of LLM test could this comment become?
|
||||||||||||||||||||||
students = json.loads(str(students)) | ||||||||||||||||||||||
|
||||||||||||||||||||||
create_class(group_class_doc["group_title"],module,group_class_doc["year"],group_class_doc["stage"],group_class_doc["semester"],group_class_doc["department"],students) | ||||||||||||||||||||||
create_class(group_title, | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: Consider using keyword arguments for better readability. Using keyword arguments when calling
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this comment correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this comment helpful? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the comment type correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the comment area correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What type of LLM test could this comment become?
|
||||||||||||||||||||||
module, | ||||||||||||||||||||||
year, | ||||||||||||||||||||||
stage, | ||||||||||||||||||||||
semester, | ||||||||||||||||||||||
department, | ||||||||||||||||||||||
students) | ||||||||||||||||||||||
|
||||||||||||||||||||||
return "Classes created successfully." | ||||||||||||||||||||||
|
||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -242,8 +242,9 @@ | |||||||||||||
}, | ||||||||||||||
{ | ||||||||||||||
"fieldname": "graduation_year", | ||||||||||||||
"fieldtype": "Date", | ||||||||||||||
"label": "Graduation Year" | ||||||||||||||
"fieldtype": "Select", | ||||||||||||||
"label": "Graduation Year", | ||||||||||||||
"options": "2030\n2029\n2028\n2027\n2026\n2025\n2024\n2023\n2022\n2021\n2020\n2019\n2018\n2017\n2016\n2015\n2014\n2013\n2012\n2011\n2010" | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: Consider dynamic generation of graduation years. Instead of hardcoding the graduation years, consider generating them dynamically to avoid frequent updates.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this comment correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this comment helpful? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the comment type correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the comment area correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What type of LLM test could this comment become?
|
||||||||||||||
}, | ||||||||||||||
{ | ||||||||||||||
"fieldname": "branch", | ||||||||||||||
|
@@ -908,7 +909,7 @@ | |||||||||||||
], | ||||||||||||||
"index_web_pages_for_search": 1, | ||||||||||||||
"links": [], | ||||||||||||||
"modified": "2024-07-06 11:38:45.932457", | ||||||||||||||
"modified": "2024-07-07 15:23:53.002388", | ||||||||||||||
"modified_by": "Administrator", | ||||||||||||||
"module": "Kalima", | ||||||||||||||
"name": "Student", | ||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Remove commented-out code.
The commented-out code in the
after_save
function should be removed if it is no longer needed to keep the codebase clean.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this comment correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this comment helpful?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the comment type correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the comment area correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What type of LLM test could this comment become?