fix: solved report export xlsx 400 error
parent
1061aa9981
commit
50f5ce81bf
|
@ -37,7 +37,8 @@ class TranscriptionExport(Resource):
|
||||||
"company_id": request.args.get("companyId", type=str),
|
"company_id": request.args.get("companyId", type=str),
|
||||||
"start_date": request.args.get("startDate"),
|
"start_date": request.args.get("startDate"),
|
||||||
"end_date": request.args.get("endDate"),
|
"end_date": request.args.get("endDate"),
|
||||||
"who": request.args.get("who", type=str)
|
"who": request.args.get("who", type=str),
|
||||||
|
"totalCost": request.args.get("totalCost", type=str, default="true")
|
||||||
}
|
}
|
||||||
|
|
||||||
validated = TranscriptionRequest(**data)
|
validated = TranscriptionRequest(**data)
|
||||||
|
@ -93,9 +94,7 @@ class TranscriptionUsageData(Resource):
|
||||||
"""
|
"""
|
||||||
Get transcription report data.
|
Get transcription report data.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
print('request.args.get("totalCost"): ', request.args.get("totalCost"))
|
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
"company_id": request.args.get("companyId", type=str),
|
"company_id": request.args.get("companyId", type=str),
|
||||||
"start_date": request.args.get("startDate"),
|
"start_date": request.args.get("startDate"),
|
||||||
|
|
Loading…
Reference in New Issue