Final format

This commit is contained in:
Aaron Lee 2021-10-01 10:00:29 +08:00
parent 7ba0426561
commit f4636365a3

View file

@ -207,9 +207,9 @@ def upload_dates():
periodData = db.child("Classes").child( periodData = db.child("Classes").child(
"Homeroom").child(t).child(i).get(session['token']).val() "Homeroom").child(t).child(i).get(session['token']).val()
db.child("Homerooms").child(t).child(i).child( db.child("Homerooms").child(t).child(i).child(
"Absent").child(h).update({"dow": row[h]}, session['token']) "Absent").child(h).update({"dow": row[h.replace('-', '/')]}, session['token'])
db.child("Homerooms").child(t).child(i).child( db.child("Homerooms").child(t).child(i).child(
"Absent").child(h).update(periodData[int(row[h])], session['token']) "Absent").child(h).update(periodData[int(row[h.replace('-', '/')])], session['token'])
os.remove(filepath) os.remove(filepath)
except Exception as e: except Exception as e:
os.remove(filepath) os.remove(filepath)