From 7ba0426561b564364b262fa60b81149d0dfc7692 Mon Sep 17 00:00:00 2001 From: Aaron Lee Date: Fri, 1 Oct 2021 09:28:24 +0800 Subject: [PATCH] Change format --- upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload.py b/upload.py index 8e393fd..f81099b 100644 --- a/upload.py +++ b/upload.py @@ -137,7 +137,7 @@ def upload_stud_in_group(): for row in csv_dict: for h in headers: 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) except Exception as e: os.remove(filepath)