|
@@ -3,8 +3,6 @@
|
|
|
"""
|
|
|
from quart import Blueprint, jsonify, request
|
|
|
|
|
|
-from applications.functions.log import logging
|
|
|
-from applications.schedule import recall_videos
|
|
|
from applications.deal import SearchDeal2, ProcessDeal, RecallDeal
|
|
|
|
|
|
my_blueprint = Blueprint('LongArticles', __name__)
|
|
@@ -47,33 +45,6 @@ def Routes(mysql_client):
|
|
|
response = await RD.deal()
|
|
|
return jsonify(response)
|
|
|
|
|
|
- # async def find_videos():
|
|
|
- # """
|
|
|
- # 请求接口代码
|
|
|
- # :return:
|
|
|
- # """
|
|
|
- # data = await request.get_json()
|
|
|
- # trace_id = data['traceId']
|
|
|
- # logging(
|
|
|
- # code="1001",
|
|
|
- # info="请求接口成功",
|
|
|
- # port="recall_videos",
|
|
|
- # trace_id=trace_id
|
|
|
- # )
|
|
|
- # try:
|
|
|
- # result = await recall_videos(
|
|
|
- # trace_id=trace_id,
|
|
|
- # mysql_client=mysql_client
|
|
|
- # )
|
|
|
- # print(result)
|
|
|
- # except Exception as e:
|
|
|
- # result = {
|
|
|
- # "traceId": trace_id,
|
|
|
- # "error": str(e)
|
|
|
- # }
|
|
|
- # print(result)
|
|
|
- # return jsonify(result)
|
|
|
-
|
|
|
@my_blueprint.route("/task")
|
|
|
async def schedule_task():
|
|
|
"""
|