UI fixes: Admin UI padding, AI Tutor Chat History, DPP filtering and Premium Gates

This commit is contained in:
2026-09-25 16:01:38 +05:30
parent 8887145260
commit 173ce4ca04
5 changed files with 161 additions and 45 deletions

View File

@@ -445,6 +445,8 @@ def list_active_tests(exam_pattern: Optional[str] = None, type: Optional[str] =
if exam_pattern:
if exam_pattern == 'JEE_NEET':
pass
elif exam_pattern == 'JEE':
query = query.where(models.Test.exam_pattern.in_(['JEE_Main', 'JEE_Advanced']))
else:
query = query.where(models.Test.exam_pattern == exam_pattern)
if type:
@@ -1839,3 +1841,4 @@ def verify_payment(payload: VerifyPaymentPayload, session: Session = Depends(get
return {"success": True, "tier": user.tier.value}