We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23d0479 commit 4c74eb2Copy full SHA for 4c74eb2
lms/lmsdb/models.py
@@ -479,19 +479,6 @@ def by_exercise(
479
.order_by(cls.date)
480
)
481
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
-
495
496
class SolutionState(enum.Enum):
497
CREATED = 'Created'
0 commit comments