mirror of
https://github.com/aaronleetw/Attendance.git
synced 2024-11-14 19:11:39 -08:00
Finish changing storage file name
This commit is contained in:
parent
ab40bcfa26
commit
7254fed8a1
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
@ -386,7 +386,7 @@ def homeroom_confirm():
|
|||
signature = request.form['signatureData']
|
||||
signature = signature.removeprefix('data:image/png;base64,')
|
||||
signature = bytes(signature, 'utf-8')
|
||||
rand = str(randint(100000000000000, 999999999999999))
|
||||
rand = str(date + '^' + homeroom[0] + '^' + homeroom[1] + '^' + 'hrCfrm')
|
||||
rand += ".png"
|
||||
with open(os.path.join('temp', rand), "wb") as fh:
|
||||
fh.write(base64.decodebytes(signature))
|
||||
|
|
Loading…
Reference in a new issue