Skip to content
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

fix: get date from attendance instead of academic years #222

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def mark_holidays(att_map, from_date, to_date, students_list):

@frappe.whitelist()
def get_year_list():
all_academic_years = frappe.db.get_list("Academic Year", pluck="year_start_date")
all_academic_years = frappe.db.get_list("Student Attendance", pluck="date")

year_list = [date.year for date in all_academic_years]
year_list = list(set(year_list))
Expand Down
Loading