mirror of
https://github.com/aaronleetw/Attendance.git
synced 2024-11-14 19:11:39 -08:00
Change upload to accomdate data
This commit is contained in:
parent
9edc8863c8
commit
cab781f1ba
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
row['number']).child("GP_Class").update({h: row[h]}, session['token'])
|
||||
str(gradec + classc)).child("GP_Class").update({h: row[h]}, session['token'])
|
||||
os.remove(filepath)
|
||||
except Exception as e:
|
||||
os.remove(filepath)
|
||||
|
@ -201,6 +201,7 @@ def upload_dates():
|
|||
temp = db.child("Homerooms").get(session['token']).val()
|
||||
for row in csv_dict:
|
||||
for h in headers:
|
||||
h = h.replace('/', '-')
|
||||
for t in temp:
|
||||
for i in temp[t]:
|
||||
periodData = db.child("Classes").child(
|
||||
|
|
Loading…
Reference in a new issue