Skip to content

Commit

Permalink
Merge pull request #222 from RitvikSardana/develop-ritvik-report-corr…
Browse files Browse the repository at this point in the history
…ect-fix

fix: get date from attendance instead of academic years
  • Loading branch information
RitvikSardana authored Mar 13, 2024
2 parents 3522410 + fe66d83 commit 1608f32
Showing 1 changed file with 1 addition and 1 deletion.
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 if date]
year_list = list(set(year_list))
Expand Down

0 comments on commit 1608f32

Please sign in to comment.