UI fixes: Admin UI padding, AI Tutor Chat History, DPP filtering and Premium Gates
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user