Fix Flask app context error in run_download thread
This commit is contained in:
1
app.py
1
app.py
@@ -108,6 +108,7 @@ def validate_spotify_url(url):
|
|||||||
|
|
||||||
|
|
||||||
def run_download(download_id, urls, format_type, delete_old, copy_choice):
|
def run_download(download_id, urls, format_type, delete_old, copy_choice):
|
||||||
|
with app.app_context():
|
||||||
download = Download.query.get(download_id)
|
download = Download.query.get(download_id)
|
||||||
if not download:
|
if not download:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user