Skip to content

Commit 4c74eb2

Browse files
committed
Removed unused method
1 parent 23d0479 commit 4c74eb2

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lms/lmsdb/models.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -479,19 +479,6 @@ def by_exercise(
479479
.order_by(cls.date)
480480
)
481481

482-
@classmethod
483-
def is_course_tag_exists(cls, course: Course, tag_name: str):
484-
return (
485-
cls
486-
.select()
487-
.join(Tag)
488-
.where(Tag.text == tag_name)
489-
.switch()
490-
.join(Exercise)
491-
.where(Exercise.course == course)
492-
.exists()
493-
)
494-
495482

496483
class SolutionState(enum.Enum):
497484
CREATED = 'Created'

0 commit comments

Comments
 (0)