mirror of
https://github.com/aaronleetw/Attendance.git
synced 2024-11-14 19:11:39 -08:00
Fix randint issue
This commit is contained in:
parent
f23d0a5057
commit
6504131919
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ def upload_homeroom():
|
||||||
if accs == []:
|
if accs == []:
|
||||||
break
|
break
|
||||||
if (allUsers[key]['origUsername'] in accs):
|
if (allUsers[key]['origUsername'] in accs):
|
||||||
db.child("Users").child(key).child("accounts").child("homeroom^"+gradec+classc+'^'+randint(10000)).update({
|
db.child("Users").child(key).child("accounts").child("homeroom^"+gradec+classc+'^'+randint(10000, 99999)).update({
|
||||||
"homeroom": gradec + '^' + classc,
|
"homeroom": gradec + '^' + classc,
|
||||||
"type": 'homeroom'
|
"type": 'homeroom'
|
||||||
}, session['token'])
|
}, session['token'])
|
||||||
|
@ -142,7 +142,7 @@ def upload_gp_classes():
|
||||||
if accs == []:
|
if accs == []:
|
||||||
break
|
break
|
||||||
if (allUsers[key]['origUsername'] in accs):
|
if (allUsers[key]['origUsername'] in accs):
|
||||||
db.child("Users").child(key).child("accounts").child("GP_Class^"+csv_dict.columns[i+1]+'^'+randint(10000)).update({
|
db.child("Users").child(key).child("accounts").child("GP_Class^"+csv_dict.columns[i+1]+'^'+randint(10000, 99999)).update({
|
||||||
csv_dict.columns[i+1]: tmp_csv[j],
|
csv_dict.columns[i+1]: tmp_csv[j],
|
||||||
"type": 'group'
|
"type": 'group'
|
||||||
}, session['token'])
|
}, session['token'])
|
||||||
|
|
Loading…
Reference in a new issue