Browse Source

修改flaskback接口

Sjim 2 years ago
parent
commit
675bb06ea9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      flaskBack.py

+ 2 - 0
flaskBack.py

@@ -16,6 +16,8 @@ def scan():
     entire = request.get_json()['entire']
     data_type = request.get_json()['dataType']
     purpose_dict = request.get_json()['purpose']
+    data_type = load_json(data_type)
+    purpose_dict = load_json(purpose_dict)
     lattice = {'dataType': data_type, 'purpose': purpose_dict}
     result = annotate(source, lattice,
              entire)