tools
This commit is contained in:
@@ -122,19 +122,3 @@ def chart_run(request, get_chart_sort):
|
||||
return JsonResponse({"img": f"/static/img_eg/show_chart/{file_id}_{k}.png"})
|
||||
|
||||
|
||||
def tools(request):
|
||||
file = request.FILES.get("file", None) # 标题
|
||||
mg = request.POST.get('mg', None)
|
||||
data = ""
|
||||
if file is None and mg is None:
|
||||
return JsonResponse({"http": "内容为空"})
|
||||
if file is None:
|
||||
data = 反向互补序列(mg)
|
||||
else:
|
||||
p = file.read()
|
||||
p.decode(encoding='utf-8')
|
||||
data = 反向互补序列(p.decode(encoding='utf-8'))
|
||||
|
||||
file_path, file_id = path_out("tools")
|
||||
keep_file(data, file_path, ui=1)
|
||||
return JsonResponse({"work_id": file_id})
|
||||
Reference in New Issue
Block a user