From 0550d3aea366a883ba045f71c6f1b66728357dc3 Mon Sep 17 00:00:00 2001 From: Fahid Latheef A Date: Tue, 7 Jan 2025 21:07:23 +0530 Subject: [PATCH] fix: fixed typo in spelling in frappe.utils.date_diff import --- lms/lms/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/lms/api.py b/lms/lms/api.py index 93e4268e3..a9e2f7285 100644 --- a/lms/lms/api.py +++ b/lms/lms/api.py @@ -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 @@ -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