Change format

This commit is contained in:
Aaron Lee 2021-10-01 09:28:24 +08:00
parent cab781f1ba
commit 7ba0426561

View file

@ -137,7 +137,7 @@ def upload_stud_in_group():
for row in csv_dict: for row in csv_dict:
for h in headers: for h in headers:
db.child("Homerooms").child(gradec).child(classc).child( db.child("Homerooms").child(gradec).child(classc).child(
str(gradec + classc)).child("GP_Class").update({h: row[h]}, session['token']) row[str(gradec+classc)]).child("GP_Class").update({h: row[h]}, session['token'])
os.remove(filepath) os.remove(filepath)
except Exception as e: except Exception as e:
os.remove(filepath) os.remove(filepath)