Skip to content

Commit

Permalink
Merge pull request #1236 from FahidLatheef/fix/days_diff_function_name
Browse files Browse the repository at this point in the history
fix: fixed typo in spelling in frappe.utils.date_diff import
  • Loading branch information
pateljannat authored Jan 8, 2025
2 parents eb6b725 + 0550d3a commit 64fac45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lms/lms/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
now,
add_days,
format_date,
days_diff,
date_diff,
)
from typing import Optional
from lms.lms.utils import get_average_rating, get_lesson_count
Expand Down Expand Up @@ -1169,5 +1169,5 @@ def prepare_heatmap_data(start_date, number_of_days, date_count):


def get_week_difference(start_date, current_date):
diff_in_days = days_diff(current_date, start_date)
diff_in_days = date_diff(current_date, start_date)
return diff_in_days // 7

0 comments on commit 64fac45

Please sign in to comment.