Corrected docs: missing await
This commit is contained in:
parent
d8ed35a546
commit
c419445784
@ -52,5 +52,5 @@ def create_user(request):
|
|||||||
def download_a_file(request, file_id):
|
def download_a_file(request, file_id):
|
||||||
def find_path_by_id(file_id):
|
def find_path_by_id(file_id):
|
||||||
return "/path/to/file.ext"
|
return "/path/to/file.ext"
|
||||||
return file(find_path_by_id(file_id), force_download=True)
|
return await file(find_path_by_id(file_id), force_download=True)
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user