feat(tkw): update file main code
This commit is contained in:
parent
647fc455d5
commit
cdce726ff1
|
|
@ -249,23 +249,23 @@ async def checkin(file: UploadFile = File(...), camera_id: str = Form("cam1"), d
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# thêm dô đây------------
|
# thêm dô đây
|
||||||
# id_log = 0
|
id_log = 0
|
||||||
# ms_response = create_history({"name": encoding.name.split('\n')[0], "time_string": f"{datetime.datetime.now()}", "status": "check in"})
|
ms_response = create_history({"name": encoding.name.split('\n')[0], "time_string": f"{datetime.datetime.now()}", "status": "check in"})
|
||||||
# id_log = ms_response.get('data').get('id')
|
id_log = ms_response.get('data').get('id')
|
||||||
# status = ms_response.get('data').get('status')
|
status = ms_response.get('data').get('status')
|
||||||
|
|
||||||
# # reset pointer
|
# reset pointer
|
||||||
# file.file.seek(0)
|
file.file.seek(0)
|
||||||
|
|
||||||
# send_image_res = send_image(
|
send_image_res = send_image(
|
||||||
# id=id_log,
|
id=id_log,
|
||||||
# file=file,
|
file=file,
|
||||||
# student_name=encoding.name,
|
student_name=encoding.name,
|
||||||
# status=status
|
status=status
|
||||||
# )
|
)
|
||||||
|
|
||||||
# print(id_log, send_image_res)
|
print(id_log, send_image_res)
|
||||||
|
|
||||||
# Insert new checkin
|
# Insert new checkin
|
||||||
db.execute(
|
db.execute(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue