This commit is contained in:
XXAY
2021-09-24 18:15:01 +08:00
parent 8908b88284
commit 5e7fb8f896
10 changed files with 596 additions and 166 deletions
-16
View File
@@ -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})