fix: add missing required user fields in bulk register
This commit is contained in:
@@ -270,7 +270,11 @@ async def bulk_register_students(file: UploadFile = File(...), session: Session
|
|||||||
phone=phone,
|
phone=phone,
|
||||||
password_hash=hashed_password,
|
password_hash=hashed_password,
|
||||||
target_exam=exam,
|
target_exam=exam,
|
||||||
tier=tier
|
tier=tier,
|
||||||
|
student_class=models.ClassEnum.TWELFTH,
|
||||||
|
medium=models.MediumEnum.ENGLISH,
|
||||||
|
city="Unknown",
|
||||||
|
state="Unknown"
|
||||||
)
|
)
|
||||||
session.add(user)
|
session.add(user)
|
||||||
results.append({
|
results.append({
|
||||||
|
|||||||
Reference in New Issue
Block a user