From fa6349cc8382a6d5b11b424be578bbc3679158a9 Mon Sep 17 00:00:00 2001 From: KyryloKireiev Date: Wed, 24 Apr 2024 17:44:56 +0300 Subject: [PATCH] style: [AXM-297] Try to fix linters (add docstrings) --- lms/djangoapps/mobile_api/course_info/constants.py | 4 ++++ lms/djangoapps/mobile_api/course_info/utils.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lms/djangoapps/mobile_api/course_info/constants.py b/lms/djangoapps/mobile_api/course_info/constants.py index 67f26ca78ff1..d62cb463951a 100644 --- a/lms/djangoapps/mobile_api/course_info/constants.py +++ b/lms/djangoapps/mobile_api/course_info/constants.py @@ -1 +1,5 @@ +""" +Common constants for the `course_info` API. +""" + BLOCK_STRUCTURE_CACHE_TIMEOUT = 60 * 60 # 1 hour diff --git a/lms/djangoapps/mobile_api/course_info/utils.py b/lms/djangoapps/mobile_api/course_info/utils.py index 5af34c459d2b..b86361223275 100644 --- a/lms/djangoapps/mobile_api/course_info/utils.py +++ b/lms/djangoapps/mobile_api/course_info/utils.py @@ -1,3 +1,7 @@ +""" +Common utils for the `course_info` API. +""" + from django.core.cache import cache from lms.djangoapps.courseware.access import has_access