f-strings everywhere
This commit is contained in:
parent
524fd0bc8c
commit
2ae740dd49
35 changed files with 227 additions and 245 deletions
|
|
@ -21,7 +21,7 @@ data and to then invoke that function and pass it to a response object::
|
|||
def generate_large_csv():
|
||||
def generate():
|
||||
for row in iter_all_rows():
|
||||
yield ','.join(row) + '\n'
|
||||
yield f"{','.join(row)}\n"
|
||||
return Response(generate(), mimetype='text/csv')
|
||||
|
||||
Each ``yield`` expression is directly sent to the browser. Note though
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue