Код: Выделить всё
@app.post('/csv-data')
def get_csv(data: DataRequest):
if not data.headers:
raise HTTPException(status_code=400, detail="Headers cannot be empty")
if data.number_of_records
Подробнее здесь: [url]https://stackoverflow.com/questions/79292889/new-line-added-to-file-when-writing-from-stringio[/url]
Мобильная версия