mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-07-07 06:52:11 +08:00
revert: fix: flask
This commit is contained in:
@ -18,7 +18,6 @@ import ujson as json
|
||||
import xmltodict
|
||||
from urllib.parse import quote
|
||||
from hashlib import md5 as handleCreateMD5
|
||||
from aiohttp.web import Response
|
||||
# from flask import Response
|
||||
|
||||
def createBase64Encode(data_bytes):
|
||||
@ -90,9 +89,6 @@ def unique_list(list_in):
|
||||
[unique_list.append(x) for x in list_in if x not in unique_list]
|
||||
return unique_list
|
||||
|
||||
def handleResult(dic, status = 200):
|
||||
return Response(body = json.dumps(dic, indent=2, ensure_ascii=False), content_type='application/json', status = status)
|
||||
|
||||
def encodeURIComponent(component):
|
||||
return quote(component)
|
||||
|
||||
|
Reference in New Issue
Block a user