chore: fix log import
This commit is contained in:
parent
7e44f6d31d
commit
1c53230b4d
|
@ -1,10 +1,13 @@
|
||||||
|
from datetime import datetime
|
||||||
|
import logging
|
||||||
import queue
|
import queue
|
||||||
import tarfile
|
import tarfile
|
||||||
from datetime import datetime
|
|
||||||
import dateutil.parser
|
import dateutil.parser
|
||||||
|
|
||||||
from sanic.exceptions import InvalidUsage
|
from sanic.exceptions import InvalidUsage
|
||||||
|
|
||||||
from obs.api.routes.tracks import log
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
RAISE = object()
|
RAISE = object()
|
||||||
|
|
||||||
|
@ -83,8 +86,10 @@ class chunk:
|
||||||
|
|
||||||
|
|
||||||
async def tar_of_tracks(req, files):
|
async def tar_of_tracks(req, files):
|
||||||
|
response = await req.respond(
|
||||||
response = await req.respond(content_type="application/x-gtar", headers={'Content-Disposition': 'attachment; filename="tracks.tar.bz2"'})
|
content_type="application/x-gtar",
|
||||||
|
headers={"Content-Disposition": 'attachment; filename="tracks.tar.bz2"'},
|
||||||
|
)
|
||||||
|
|
||||||
helper = StreamerHelper(response)
|
helper = StreamerHelper(response)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue