Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

v1.2.3 #48

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/src/route/api/upload/CSV_POST.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def main():
cursor.execute("UPDATE class SET useGroup=%s WHERE CSYID=%s", (0, CSYID))

# insert user to grader
AddUserGrader(connection, cursor, student_id, student_id + f"@{"student." if student_id.isnumeric() else ""}chula.ac.th", student_Name)
AddUserGrader(connection, cursor, student_id, student_id + f"@{'student.' if student_id.isnumeric() else ''}chula.ac.th", student_Name)

# Check if student exists and update or insert
cursor.execute("SELECT * FROM student WHERE UID=%s AND CSYID=%s", (student_id, CSYID))
Expand Down
Loading